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