New

docx-editor 1.x has shipped. Vue support, i18n, agents. Read the migration guide →

API Referencev1.0.2

@eigenpal/docx-editor-vue/plugin-api

Generic plugin interface and host component for integrating external plugins with the Vue editor. Pairs with the framework-agnostic plugin types exported from `@eigenpal/docx-editor-core/plugin-api`.

Interfaces(1)

Vue-specific editor plugin interface.

Extends EditorPluginCore with: - Panel: Vue component for rendering in the annotation panel - renderOverlay: Function returning VNode for overlay rendering

export interface VueEditorPlugin<TState = any> extends EditorPluginCore<TState>
MemberTypeSummary
Panel?Component<PluginPanelProps<TState>>Vue component to render in the annotation panel area.
renderOverlay?(context: RenderedDomContext, state: TState, editorView: EditorView | null) => VNode | nullRender an overlay on top of the rendered pages.

Type aliases(1)

Canonical alias — `EditorPlugin` is `VueEditorPlugin` inside the Vue adapter. The package name already encodes the framework; importing `EditorPlugin` from `@eigenpal/docx-editor-vue/plugin-api` reads as cleanly as the React import. Mirrors React's `EditorPlugin` alias.

export type EditorPlugin<TState = any> = VueEditorPlugin<TState>;