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

21 lines
352 B
TypeScript
Raw Normal View History

2020-11-16 06:25:25 +08:00
import { Extension } from '@tiptap/core'
import { dropCursor } from 'prosemirror-dropcursor'
2020-11-16 06:25:25 +08:00
const Dropcursor = Extension.create({
addProseMirrorPlugins() {
return [
dropCursor(),
]
},
})
export default Dropcursor
2020-11-16 22:40:05 +08:00
declare global {
namespace Tiptap {
interface AllExtensions {
Dropcursor: typeof Dropcursor,
}
}
}