tiptap/packages/extension-document/index.ts
2020-03-30 10:42:59 +02:00

15 lines
185 B
TypeScript

import { Node } from '@tiptap/core'
export default class Document extends Node {
name = 'document'
topNode = true
schema() {
return {
content: 'block+',
}
}
}