mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-21 23:38:01 +08:00
19 lines
345 B
TypeScript
19 lines
345 B
TypeScript
|
import { createExtension } from '@tiptap/core'
|
||
|
import { gapCursor } from 'prosemirror-gapcursor'
|
||
|
|
||
|
const Gapcursor = createExtension({
|
||
|
addProseMirrorPlugins() {
|
||
|
return [
|
||
|
gapCursor(),
|
||
|
]
|
||
|
},
|
||
|
})
|
||
|
|
||
|
export default Gapcursor
|
||
|
|
||
|
declare module '@tiptap/core/src/Editor' {
|
||
|
interface AllExtensions {
|
||
|
Gapcursor: typeof Gapcursor,
|
||
|
}
|
||
|
}
|