tiptap/packages/extension-document/index.ts
2020-10-09 22:59:25 +02:00

20 lines
287 B
TypeScript

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