mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-24 09:27:49 +08:00
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,
|
|
}
|
|
}
|