@remirror/extension-gap-cursor
TypeScript icon, indicating that this package has built-in type declarations

2.0.13 • Public • Published

@remirror/extension-gap-cursor

Enable cursors for difficult to reach parts of the document.

Version Weekly Downloads Bundled size Typed Codebase MIT License

Installation

# yarn
yarn add @remirror/extension-gap-cursor

# pnpm
pnpm add @remirror/extension-gap-cursor

# npm
npm install @remirror/extension-gap-cursor

This is included by default when you install the recommended remirror package. All exports are also available via the entry-point, remirror/extensions.

Usage

The following code creates an instance of this extension.

import { GapCursorExtension } from 'remirror/extensions';

const extension = new GapCursorExtension();

When enabled, 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 as shown below.

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

Readme

Keywords

Package Sidebar

Install

npm i @remirror/extension-gap-cursor

Weekly Downloads

24,748

Version

2.0.13

License

MIT

Unpacked Size

61.5 kB

Total Files

10

Last publish

Collaborators

  • ocavue
  • ifiokjr