@mermaid-editor-sdk/ui


@mermaid-editor-sdk/ui / createMermaidVisualEditor

Function: createMermaidVisualEditor()

createMermaidVisualEditor(container, options): MermaidVisualEditor

Defined in: package/ui/src/runtime/create-editor.ts:84

Mounts the visual editor in an existing HTML element.

Parameters

ParameterTypeDescription
containerHTMLElementHTML element that receives the editor.
optionsMermaidVisualEditorOptionsInitial source and optional event callbacks.

Returns

MermaidVisualEditor

The mounted editor instance.