Manage your remirror editor dom events.
# 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
.
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
.