mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-27 11:27:49 +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+',
|
|
}
|
|
}
|
|
|
|
} |