Skip to main content

editor_server()

Track the Mermaid code the viewer should draw.

Usage

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(), as in editor_server("editor").

Returns

reactive.Value[str]
The committed Mermaid code.