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

3.0.1 • Public • Published

@remirror/extension-events

Manage your remirror editor dom events.

Version Weekly Downloads Bundled size Typed Codebase MIT License

Installation

# yarn
yarn add @remirror/extension-events @remirror/core

# pnpm
pnpm add @remirror/extension-events @remirror/core

# npm
npm install @remirror/extension-events @remirror/core

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 { EventsExtension } from 'remirror/extensions';

const extension = new EventsExtension();

extension.addCustomHandler('focus', () => {
  // Do something.
});

This extension is included by default in the CorePreset from remirror/presets.

Dependencies (3)

Dev Dependencies (2)

Package Sidebar

Install

npm i @remirror/extension-events

Weekly Downloads

39,095

Version

3.0.1

License

MIT

Unpacked Size

145 kB

Total Files

14

Last publish

Collaborators

  • ocavue
  • ifiokjr