mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-22 16:17:50 +08:00
16 lines
268 B
TypeScript
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,
|
|
}
|
|
}
|