mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 00:27:49 +08:00
28 lines
400 B
TypeScript
28 lines
400 B
TypeScript
import { createNode } 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+'
|
|
|
|
// }
|
|
|
|
export default createNode({
|
|
name: 'document',
|
|
|
|
topNode: true,
|
|
|
|
content: 'block+',
|
|
})
|