tiptap/packages/extension-document/index.ts
2020-11-02 11:16:31 +01:00

16 lines
275 B
TypeScript

import { createNode } from '@tiptap/core'
const Document = createNode({
name: 'document',
topNode: true,
content: '(block|list)+',
})
export default Document
declare module '@tiptap/core/src/Editor' {
interface AllExtensions {
Document: typeof Document,
}
}