Plugins

Plugin system

Overview of the two plugin systems: EditorPlugin for browser UI panels and overlays, and CorePlugin for headless document processing in Node.js.

The editor has two plugin systems. EditorPlugin extends the browser editor with React UI: side panels, overlays painted over the pages, ProseMirror plugins, and scoped CSS. CorePlugin extends the headless document engine with command handlers that edit a Document without a browser. They share the same document model and parsers but run in different environments and do not communicate with each other.

EditorPluginCorePlugin
EnvironmentBrowser (React)Node.js (headless)
Extends<DocxEditor> UI: panels, overlays, ProseMirrorDocument edits via command handlers
Registration<PluginHost plugins={[...]}>pluginRegistry.register(plugin)
Entry point@eigenpal/docx-editor-react/plugin-api@eigenpal/docx-editor-core/core-plugins

Building UI inside the editor? Write an EditorPlugin. Processing documents in API routes, Node.js scripts, or CI pipelines? Write a CorePlugin.