replace extensions

This commit is contained in:
Philipp Kühn
2020-09-08 23:44:45 +02:00
parent 678b6444d2
commit 26ecc20a50
16 changed files with 590 additions and 491 deletions

View File

@@ -1,16 +1,9 @@
import { Node } from '@tiptap/core'
import { NodeSpec } from 'prosemirror-model'
export default class Document extends Node {
name = 'document'
topNode = true
schema(): NodeSpec {
return {
content: 'block+',
}
}
}
export default new Node()
.name('document')
.topNode()
.schema(() => ({
content: 'block+',
}))
.create()