tiptap/packages/extension-document/index.ts

16 lines
268 B
TypeScript
Raw Normal View History

2020-10-21 21:17:05 +08:00
import { createNode } from '@tiptap/core'
2019-12-17 06:20:05 +08:00
2020-10-23 04:40:40 +08:00
const Document = createNode({
2020-10-21 21:17:05 +08:00
name: 'document',
topNode: true,
content: 'block+',
})
2020-10-23 04:40:40 +08:00
export default Document
declare module '@tiptap/core/src/Editor' {
interface AllExtensions {
Document: typeof Document,
}
}