@remirror/extension-events
Manage your remirror editor dom events.
Installation
yarn add @remirror/extension-events @remirror/pm @remirror/core
pnpm add @remirror/extension-events @remirror/pm @remirror/core
npm install @remirror/extension-events @remirror/pm @remirror/core
This is included by default when you install the recommended remirror
package. All exports are also available via the entry-point, remirror/extension/events
.
Usage
The following code creates an instance of this extension.
import { EventsExtension } from 'remirror/extension/events';
const extension = new EventsExtension();
extension.addCustomHandler('focus', () => {
});
This extension is included by default in the CorePreset
from remirror/preset/core
.