replace NodeExtension with Node, replace MarkExtension with Mark

This commit is contained in:
Philipp Kühn
2020-11-16 11:19:43 +01:00
parent b44aafa97c
commit 8a7603edaf
31 changed files with 105 additions and 99 deletions

View File

@@ -1,4 +1,4 @@
import { NodeExtension } from '@tiptap/core'
import { Node } from '@tiptap/core'
export interface ListItemOptions {
HTMLAttributes: {
@@ -6,7 +6,7 @@ export interface ListItemOptions {
},
}
const ListItem = NodeExtension.create({
const ListItem = Node.create({
name: 'listItem',
defaultOptions: <ListItemOptions>{