replace NodeExtension with Node, replace MarkExtension with Mark
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Command, NodeExtension } from '@tiptap/core'
|
||||
import { Command, Node } 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 = NodeExtension.create({
|
||||
const Heading = Node.create({
|
||||
name: 'heading',
|
||||
|
||||
defaultOptions: <HeadingOptions>{
|
||||
|
||||
Reference in New Issue
Block a user