Formatting and content tools
Quarterly report
Format text, add colour, build tables, and place media.
Toolbar and menus
Toolbar tokens and menu configuration determine what users see. Plugins not required by the configuration remain lazy.
const editor = await Editra.init({
selector: "#editra-editor",
plugins: ["bold", "italic", "underline", "formatting"],
toolbar: "bold italic underline | foreColor highlighter"
});Text formatting
Commands
Toolbar and menu actions converge on executeCommand(), so external application controls can invoke the same behaviors.
const editor = await Editra.init({ selector: "#editra-editor" });
await editor.executeCommand("bold");
await editor.executeCommand("setFontSize", "14px");
await editor.executeCommand("setAlignment", "center");