mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-21 15:28:09 +08:00
16 lines
240 B
TypeScript
16 lines
240 B
TypeScript
import { Node } from '@tiptap/core'
|
|
import { NodeSpec } from 'prosemirror-model'
|
|
|
|
export default class Document extends Node {
|
|
|
|
name = 'document'
|
|
|
|
topNode = true
|
|
|
|
schema(): NodeSpec {
|
|
return {
|
|
content: 'block+',
|
|
}
|
|
}
|
|
|
|
} |