mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-24 01:17:50 +08:00
21 lines
352 B
TypeScript
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,
|
|
}
|
|
}
|
|
}
|