mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-22 08:07: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,
|
|
}
|
|
}
|