tiptap/packages/extension-document/index.ts
2020-03-31 22:57:39 +02:00

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+',
}
}
}