tiptap/packages/extension-document/index.ts

20 lines
287 B
TypeScript
Raw Normal View History

2019-12-17 06:20:05 +08:00
import { Node } from '@tiptap/core'
2020-10-10 04:59:25 +08:00
// export default new Node()
// .name('document')
// .topNode()
// .schema(() => ({
// content: 'block+',
// }))
// .create()
export default class Document extends Node {
name = 'document'
topNode = true
content = 'block+'
}