19 lines
336 B
TypeScript
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,
|
|
}
|
|
}
|