mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-25 10:17:49 +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,
|
|
}
|
|
}
|