Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@editora/code) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@editora/code
[!IMPORTANT] Live Website: https://editora-ecosystem.netlify.app/
Storybook: https://editora-ecosystem-storybook.netlify.app/
Source view plugin for Editora rich text editor.
What It Does
- Toggles source-editor mode for HTML editing.
- Uses
codejarandhighlight.jsfor lightweight code editing/highlighting. - Allows direct source modifications and write-back to editor content.
Installation
npm install @editora/codeOr bundled plugins:
npm install @editora/pluginsUsage
import { CodePlugin } from "@editora/code";
// or: import { CodePlugin } from "@editora/plugins";
const plugins = [CodePlugin()];Command and Shortcut
- Command:
toggleSourceView - Shortcut:
Mod-Shift-S
Notes
- Source dialog supports large content editing, search interactions, and apply/cancel flows.