tiptap/packages/extension-dropcursor/src/index.ts

19 lines
341 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
2020-11-11 04:18:22 +08:00
declare module '@tiptap/core' {
interface AllExtensions {
Dropcursor: typeof Dropcursor,
}
}