@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
| Parameter | Type | Description |
|---|---|---|
container | HTMLElement | HTML element that receives the editor. |
options | MermaidVisualEditorOptions | Initial source and optional event callbacks. |
Returns
The mounted editor instance.