tiptap/packages/extension-gapcursor/index.ts

19 lines
345 B
TypeScript
Raw Normal View History

import { createExtension } from '@tiptap/core'
import { gapCursor } from 'prosemirror-gapcursor'
const Gapcursor = createExtension({
addProseMirrorPlugins() {
return [
gapCursor(),
]
},
})
export default Gapcursor
declare module '@tiptap/core/src/Editor' {
interface AllExtensions {
Gapcursor: typeof Gapcursor,
}
}