A mounted CodeMirror editor handle. The dialog reads the live value at Save time via getValue, focuses it after the popup is shown, and destroys it on close.
Tear down the CodeMirror view.
Focus the editor and force a re-measure (paints correctly in a popup).
The current editor text.
Insert text at the caret (replacing any selection) and re-focus. For a helper call like abs() the caret lands between the parentheses.
text
abs()
The text to insert.
Replace the entire editor text (fires the change handler). Used by tests to set content deterministically without simulating keystrokes.
The new editor text.
A mounted CodeMirror editor handle. The dialog reads the live value at Save time via getValue, focuses it after the popup is shown, and destroys it on close.