HTML source editor panel.
getTextarea#
Returns the source textarea element, creating it if needed.
Returns: HTMLTextAreaElement
app.source.getTextarea();
setValue#
Sets the source textarea value to the given HTML string.
Parameters:
- value (
any) — value to store
app.source.setValue('<p>Hi</p>');
getValue#
Returns the current source value, passing through CodeMirror when active.
Returns: string
app.source.getValue();
show#
Shows the source panel with current HTML, disables other toolbar buttons, and initializes CodeMirror.
app.source.show();
hide#
Hides the source panel, parses textarea HTML back into the editor, and restores toolbar state.
app.source.hide();
toggle#
Toggles between source and WYSIWYG editing modes.
app.source.toggle();
isVisible#
Returns whether the source panel is currently visible.
Returns: boolean
app.source.isVisible();