tiptap/packages/extension-document/src/document.ts

14 lines
234 B
TypeScript
Raw Normal View History

import { Node } from '@tiptap/core'
2019-12-17 06:20:05 +08:00
2020-12-08 04:32:50 +08:00
export const Document = Node.create({
2020-10-21 21:17:05 +08:00
name: 'document',
topNode: true,
2020-11-02 22:18:03 +08:00
content: 'block+',
2020-10-21 21:17:05 +08:00
})
2020-10-23 04:40:40 +08:00
declare module '@tiptap/core' {
interface AllExtensions {
Document: typeof Document,
2020-10-23 04:40:40 +08:00
}
}