tiptap/packages/extension-dropcursor/src/index.ts
2020-11-10 16:29:31 +01:00

19 lines
352 B
TypeScript

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