tiptap/packages/extension-document/index.ts
2020-09-08 23:44:45 +02:00

9 lines
155 B
TypeScript

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