Core editing

Create semantic, readable content with Word-like familiarity.

Why teams choose it

A complete formatting surface without assembling basic controls yourself.

Open Working Demo
editor.executeCommand("setHeading", "h2");
editor.executeCommand("setFontFamily", "Segoe UI");
editor.executeCommand("highlightText", "#fff176");

Toolbar and menus

Generate responsive UI from plugin and toolbar configuration.

Why teams choose it

Ship a focused interface for each workflow instead of exposing irrelevant controls.

Open Working Demo
const editor = await Editra.init({
  selector: "#editra-editor",
  plugins: ["bold", "italic", "formatting"],
  toolbar: "bold italic | foreColor highlighter",
  showMenuBar: true
});

Page control

Use standard sizes, orientation, margins, rulers, headers, footers, and page breaks.

Why teams choose it

Page decisions are first-class editor state rather than application-side decoration.

Open Working Demo
const editor = await Editra.init({
  selector: "#editra-editor",
  pageSize: "A4",
  orientation: "portrait",
  margins: { top: "1in", right: "1in", bottom: "1in", left: "1in" }
});

Advanced tables

Insert from a grid, resize, merge, split, style, select, and paginate tables.

Why teams choose it

Document-oriented operations and large-table flow are available through commands.

Open Working Demo
editor.executeCommand("insertTable", { rows: 6, columns: 4 });
editor.executeCommand("setTableBorderColor", "#15171a");

Media

Insert local, clipboard, data-stream, URL image, MP4, and supported video embeds.

Why teams choose it

Resizable media blocks are handled as editor content and pagination-safe objects.

Open Working Demo
editor.executeCommand("insertImage", { url: "/diagram.png", alt: "Diagram" });
editor.executeCommand("insertVideo", { url: "/walkthrough.mp4" });

Productivity

Undo/redo, find/replace, format painter, merge fields, paste control, and source view.

Why teams choose it

Common document workflows share the same command registry and event model.

Open Working Demo
editor.executeCommand("findReplace", { find: "Draft", replace: "Final" });
editor.executeCommand("insertMergeField", { name: "CustomerName" });

Word and HTML import

Open DOCX and styled HTML through Editra's native secure document pipeline.

Why teams choose it

Supported fonts, spacing, tables, page settings, images, and safe CSS reach the editor without a separate website converter.

Open Working Demo
await editor.executeCommand("importWord");
// or
await editor.executeCommand("importHTML");

Export and print

Route page-aware output to PDF, Word, HTML, Markdown, and print.

Why teams choose it

Visible page structure is included in serialization and export snapshots.

Open Working Demo
await editor.executeCommand("exportPDF");
await editor.executeCommand("exportWord");
await editor.executeCommand("printContentOnly", true);

Keyboard and accessibility

Use Word-like shortcuts, responsive controls, focus states, and semantic structures.

Why teams choose it

Familiar interaction reduces training effort while configuration remains browser-safe.

Open Working Demo
const editor = await Editra.init({
  selector: "#editra-editor",
  plugins: ["bold", "italic", "underline", "shortcuts"]
});

QR codes and barcodes

Generate Code128, Code39, EAN13, and QR SVG objects from focused dialogs.

Why teams choose it

Encoded values persist in the document model and remain selectable, draggable, resizable, deletable, and export-safe.

Open Working Demo
await editor.executeCommand("insertBarcode", {
  value: "EDITRA-2026", format: "CODE128"
});
await editor.executeCommand("insertQrCode", {
  value: "https://editra.in"
});

Code blocks and HTML mode

Insert syntax-ready or plain code blocks, choose their background, and edit source without losing container text.

Why teams choose it

Source mode preserves user HTML while block pagination and presentation stay configurable.

Open Working Demo
editor.executeCommand("insertCodeBlock", {
  language: "javascript", background: "#eef2ff"
});
editor.executeCommand("toggleCodeView");

Formatting refinements

Use compact color palettes, No Fill, stable list toggles, superscript, subscript, block quotes, and Format Painter.

Why teams choose it

Unified commands keep toolbar, menu, and keyboard behavior synchronized without escalating inline font size.

Open Working Demo
editor.executeCommand("superscript");
editor.executeCommand("blockQuote");
editor.executeCommand("formatPainter");

Draggable objects

Select, move, resize, and delete images, QR codes, barcodes, emoji, tables, and rich objects.

Why teams choose it

Object interactions use a consistent selection model and Delete-key handling across the editor.

Open Working Demo
const editor = await Editra.init({
  selector: "#editra-editor",
  plugins: ["image", "structure", "codes"]
});

Multilingual and symbols

Build locale-aware interfaces and insert categorized emoji, currency, text, math, arrow, and Latin characters.

Why teams choose it

Language resources and specialized tools load only when the configuration requests them.

Open Working Demo
const editor = await Editra.init({
  selector: "#editra-editor",
  language: "en",
  plugins: ["structure", "formatting"]
});

Security and lifecycle

Control active pasted content, constrain visible capabilities, preserve semantic output, and destroy listeners cleanly.

Why teams choose it

Defense-in-depth integration guidance reduces attack surface and avoids retained editor resources during teardown.

Open Working Demo
const editor = await Editra.init({
  selector: "#editra-editor",
  sanitizePaste: true,
  plugins: ["paste", "bold"]
});
editor.destroy();
Complete integration recipe

HTML, JavaScript, and CSS that stay readable.

The browser-native surface is easy to embed, configure, and brand without framework lock-in.

HTML
<div id="editra-editor">
  <p>Start writing…</p>
</div>
JavaScript
const editor = await Editra.init({
  selector: "#editra-editor",
  plugins: ["bold", "table", "image"],
  toolbar: "bold | insertTable insertImage"
});
CSS
#editra-editor {
  min-height: 12rem;
  color: #182033;
  font-family: "Segoe UI", sans-serif;
}
Two purposeful themes

Word familiarity or Classic speed.

Both themes share the same secure API and plugin ecosystem. Choose the document experience your users already understand.

Editra Word theme with a page-like editor, formatting tools, rich media, QR code, and barcode

Word Theme

Familiar MS Word-like editing, page guides, enterprise-friendly controls, and rich document formatting reduce training for document-heavy teams.

Open paginated Word demo
Editra Classic theme showing a lightweight continuous editor toolbar and content workflow

Classic Theme

A lightweight, fast, continuous editor for standard workflows where page boundaries are unnecessary unless a user inserts one.

Open Classic demo
A distinctive integration surface

One API. Two themes. Two host types.

Compare the two compact Classic hosts side by side, then explore a complete centered A4 Word document using the same secure API and plugin system.

Classic + div

Classic + textarea

Complete Word-theme example

Centered A4 feature form

One full page combining rich formatting, tables, lists, form fields, QR, barcode, page setup, media tools, and export-ready structure.

Need a focused integration?

Enable only the plugins and controls your workflow requires. Heavy capabilities remain lazy until invoked.