## editor_server()


Track the Mermaid code the viewer should draw.


Usage


``` python
editor_server(
    input,
    output,
    session,
)
```


With Auto-Update on, every edit is committed. With it off, code is committed only when Render is clicked. Call with the same id as [editor_ui()](editor_ui.md#shypermaid.editor_ui), as in `editor_server("editor")`.


## Returns


`reactive.Value[str]`  
The committed Mermaid code.
