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