Skip to main content

GapCursorExtension

Summary

This will capture clicks near and arrow-key-motion past places that don't have a normally selectable position nearby, and create a gap cursor selection for them. The cursor is drawn as an element with class ProseMirror-gapcursor.

Make sure to import the styles:

import '@remirror/styles/extension-gap-cursor.css';

Usage

Installation

This extension is installed for you when you install the main remirror package.

You can use the imports in the following way:

import { GapCursorExtension } from 'remirror/extensions';

The extension is provided by the @remirror/extension-gap-cursor package.

API