Gapcursor extension
This extension loads the ProseMirror Gapcursor plugin by Marijn Haverbeke, which adds a gap for the cursor in places that don’t allow regular selection. For example, after a table at the end of a document.
Note that Tiptap is headless, but the gapcursor needs CSS for its appearance. The default CSS is loaded through the Editor class.
Install
npm install @tiptap/extensions
Usage
import { Editor } from '@tiptap/core'
import { Gapcursor } from '@tiptap/extensions'
new Editor({
extensions: [Gapcursor],
})
Source code
packages/extensions/src/gap-cursor/
Minimal Install
import { Editor } from '@tiptap/core'
import { Gapcursor } from '@tiptap/extensions/gapcursor'
new Editor({
extensions: [Gapcursor],
})