tiptap/packages/extension-document/index.ts
2020-09-24 00:29:05 +02:00

10 lines
156 B
TypeScript

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