2020-10-21 21:17:05 +08:00
|
|
|
import { createNode } from '@tiptap/core'
|
2019-12-17 06:20:05 +08:00
|
|
|
|
2020-10-10 04:59:25 +08:00
|
|
|
// export default new Node()
|
|
|
|
// .name('document')
|
|
|
|
// .topNode()
|
|
|
|
// .schema(() => ({
|
|
|
|
// content: 'block+',
|
|
|
|
// }))
|
|
|
|
// .create()
|
|
|
|
|
2020-10-21 21:17:05 +08:00
|
|
|
// export default class Document extends Node {
|
2020-10-10 04:59:25 +08:00
|
|
|
|
2020-10-21 21:17:05 +08:00
|
|
|
// name = 'document'
|
2020-10-10 04:59:25 +08:00
|
|
|
|
2020-10-21 21:17:05 +08:00
|
|
|
// topNode = true
|
2020-10-10 04:59:25 +08:00
|
|
|
|
2020-10-21 21:17:05 +08:00
|
|
|
// content = 'block+'
|
2020-10-10 04:59:25 +08:00
|
|
|
|
2020-10-21 21:17:05 +08:00
|
|
|
// }
|
|
|
|
|
|
|
|
export default createNode({
|
|
|
|
name: 'document',
|
|
|
|
|
|
|
|
topNode: true,
|
|
|
|
|
|
|
|
content: 'block+',
|
|
|
|
})
|