tiptap/packages/extension-gapcursor/index.ts
2020-11-01 00:16:28 +01:00

19 lines
345 B
TypeScript

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,
}
}