@editora/plugin-history
v1.0.3
Published
History plugin for Rich Text Editor
Readme
@editora/plugin-history
[!IMPORTANT] Live Website: https://editora-ecosystem.netlify.app/
Storybook: https://editora-ecosystem-storybook.netlify.app/
History plugin for Editora rich text editor.
What It Does
- Adds undo/redo toolbar controls.
- Tracks DOM transactions recorded by plugins.
- Supports command-based history control for keyboard shortcuts.
- Works with native fallback where available.
Installation
npm install @editora/plugin-historyOr bundled plugins:
npm install @editora/pluginsUsage
import { HistoryPlugin } from "@editora/plugin-history";
// or: import { HistoryPlugin } from "@editora/plugins";
const plugins = [HistoryPlugin()];Commands and Shortcuts
undo(Mod-z)redo(Mod-y,Mod-Shift-z)undoDomredoDom
Notes
- For plugin-level undo/redo, plugins should record DOM transactions through the shared command executor.
