tiptap/packages/extension-dropcursor/src/index.ts
2020-11-15 23:25:25 +01:00

19 lines
336 B
TypeScript

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