14 lines
229 B
TypeScript
14 lines
229 B
TypeScript
import { Node } from '@tiptap/core'
|
|
|
|
export const Document = Node.create({
|
|
name: 'doc',
|
|
topNode: true,
|
|
content: 'block+',
|
|
})
|
|
|
|
declare module '@tiptap/core' {
|
|
interface AllExtensions {
|
|
Document: typeof Document,
|
|
}
|
|
}
|