tiptap/docs/api/extensions/gapcursor.md
2021-10-14 00:13:50 +02:00

1.2 KiB
Raw Blame History

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

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

# with npm
npm install @tiptap/extension-gapcursor

# with Yarn
yarn add @tiptap/extension-gapcursor

Source code

packages/extension-gapcursor/

Usage