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

16 lines
268 B
TypeScript

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