tiptap/docs/api/extensions/gapcursor.md
2022-12-08 12:26:12 +01:00

1.4 KiB
Raw Blame History

description icon
The gapcursor makes sure the cursor doesnt get stuck … in a gap. space

Gapcursor

Version Downloads

This extension loads the ProseMirror Gapcursor plugin by Marijn Haverbeke, which adds a gap for the cursor in places that dont 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.

Installation

npm install @tiptap/extension-gapcursor

If you use NPM 6 or lower, yarn or pnpm, you also need to install the Prosemirror dependencies.

# NPM 6 and lower
npm install prosemirror-gapcursor

# yarn
yarn add prosemirror-gapcursor

# pnpm
pnpm install prosemirror-gapcursor

Source code

packages/extension-gapcursor/

Usage

https://embed.tiptap.dev/preview/Extensions/Gapcursor