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

19 lines
336 B
TypeScript
Raw Normal View History

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