tiptap/packages/extension-dropcursor/index.ts

19 lines
352 B
TypeScript
Raw Normal View History

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,
}
}