Skip to main content
Version: 1.0.0

Web Component Example

Use the native custom element when you need framework-independent integration with strong instance isolation.

Minimal setup

<editora-editor
id="editor-a"
theme="light"
plugins="bold italic underline link table history"
toolbar-items="undo redo | bold italic underline | link table"
placeholder="Start writing..."
statusbar="true"
></editora-editor>

Multi-instance setup

  • Give every editor a unique id.
  • Keep plugin sets and toolbar layouts context-specific.
  • Use per-instance theme attributes/classes when mixing light and dark editors.

Runtime checks

  • Verify command routing stays local to focused editor.
  • Verify sidebars/dialogs mount under the clicked editor container.
  • Verify status bar metrics update only for active instance.

API Surface

  • Element attributes for plugins, toolbar, theme, placeholder, statusbar, height.
  • Runtime lifecycle hooks/events for content changes and setup/teardown.
  • Instance-scoped command dispatch.

Config Matrix

Use CaseSuggested Config
Minimal editorsmall plugin set + compact toolbar
Document editorfull plugin set + statusbar + autosave
Multi-editor pageunique ids + scoped panels + mixed themes

Validation Checklist

  • Initial content renders without cursor-jump regressions.
  • Selection commands and dialogs remain stable after focus changes.
  • Readonly mode preserves interactive restrictions correctly.