Editra documentation

Advanced features

Polish the editing workflow with themes, keyboard navigation, source view, paste control, and productivity commands.

Word and Classic themes

Word provides a familiar page-like document experience with automatic guides and enterprise-friendly controls. Classic provides a fast continuous surface for standard content workflows. Both themes support div and textarea hosts.

Open theme demo →

Keyboard shortcuts

Word-like shortcuts include Ctrl/Cmd+B, I, U, A, Z, Y, S, Tab, Delete, and Backspace, with browser-safe routing.

Open shortcut demo →

Code view and paste

Source view provides line numbers, readable highlighting, auto-indent, and lossless save back to WYSIWYG. Raw paste is preserved by default; enable sanitizePaste to strip unsafe active content.

const editor = await Editra.init({
  selector: "#editra-editor",
  sanitizePaste: true,
  onPaste(event) { return event.html; },
  onCommand(event) { console.log(event.command); }
});

Productivity and collaboration

Find and replace, format painter, superscript/subscript, merge fields, comments, change tracking, revision history, and collaboration commands integrate through the same command registry.

Multilingual UI

Locale-aware labels and direction settings let teams configure the editing surface for multilingual products without loading unrelated language resources.

Privacy and legal boundaries

Review how browser-local demos, feedback submission, third-party resources, downloads, documentation, and MIT licensing are handled in the Privacy Policy and Legal and Terms of Use.