@editora/background-color
v1.0.4
Published
Background color plugin for Rich Text Editor
Maintainers
Readme
@editora/background-color
[!IMPORTANT] Live Website: https://editora-ecosystem.netlify.app/
Storybook: https://editora-ecosystem-storybook.netlify.app/
Background color plugin for Editora rich text editor.
What It Does
- Applies highlight/background color to selected text.
- Opens an inline color picker with presets and custom values.
- Handles multi-line selections and editor-scoped insertion.
- Integrates with history transactions for undo/redo.
Installation
npm install @editora/background-colorOr use bundled plugins package:
npm install @editora/pluginsUsage
import { BackgroundColorPlugin } from "@editora/background-color";
// or: import { BackgroundColorPlugin } from "@editora/plugins";
const plugins = [BackgroundColorPlugin()];Toolbar Command and Shortcut
- Command:
openBackgroundColorPicker - Shortcut:
Mod-Shift-h
Notes
- Use with
@editora/text-colorfor full text styling controls.
