tiptap/packages/extension-dropcursor/src/index.ts
2020-11-16 15:40:05 +01:00

21 lines
352 B
TypeScript

import { Extension } from '@tiptap/core'
import { dropCursor } from 'prosemirror-dropcursor'
const Dropcursor = Extension.create({
addProseMirrorPlugins() {
return [
dropCursor(),
]
},
})
export default Dropcursor
declare global {
namespace Tiptap {
interface AllExtensions {
Dropcursor: typeof Dropcursor,
}
}
}