add new syntax to all packages

This commit is contained in:
Philipp Kühn
2020-11-15 23:25:25 +01:00
parent 17dd284366
commit 034ee139a3
39 changed files with 353 additions and 205 deletions

View File

@@ -1,4 +1,4 @@
import { Command, createNode } from '@tiptap/core'
import { Command, NodeExtension } from '@tiptap/core'
import { textblockTypeInputRule } from 'prosemirror-inputrules'
type Level = 1 | 2 | 3 | 4 | 5 | 6
@@ -10,7 +10,7 @@ export interface HeadingOptions {
},
}
const Heading = createNode({
const Heading = NodeExtension.create({
name: 'heading',
defaultOptions: <HeadingOptions>{