mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-24 01:17:50 +08:00
19 lines
352 B
TypeScript
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,
|
||
|
}
|
||
|
}
|