Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@remirror/extension-gap-cursor

Package Overview
Dependencies
Maintainers
0
Versions
278
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@remirror/extension-gap-cursor

Enable cursors for difficult to reach parts of the document.

  • 3.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
37K
increased by10.72%
Maintainers
0
Weekly downloads
 
Created
Source

@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';

Keywords

FAQs

Package last updated on 01 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc