tiptap/packages/extension-document/src/index.ts

16 lines
270 B
TypeScript
Raw Normal View History

2020-11-16 06:25:25 +08:00
import { NodeExtension } from '@tiptap/core'
2019-12-17 06:20:05 +08:00
2020-11-16 06:25:25 +08:00
const Document = NodeExtension.create({
2020-10-21 21:17:05 +08:00
name: 'document',
topNode: true,
2020-11-02 22:18:03 +08:00
content: 'block+',
2020-10-21 21:17:05 +08:00
})
2020-10-23 04:40:40 +08:00
export default Document
2020-11-11 04:18:22 +08:00
declare module '@tiptap/core' {
2020-10-23 04:40:40 +08:00
interface AllExtensions {
Document: typeof Document,
}
}