tiptap/packages/extension-document/index.ts

15 lines
185 B
TypeScript
Raw Normal View History

2019-12-17 06:20:05 +08:00
import { Node } from '@tiptap/core'
export default class Document extends Node {
2020-03-06 07:15:36 +08:00
name = 'document'
topNode = true
2019-12-17 06:20:05 +08:00
2020-03-29 06:54:49 +08:00
schema() {
return {
content: 'block+',
}
2019-12-17 06:20:05 +08:00
}
}