BWAEditor Members
The BWAEditor type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
|
AddCustomButton |
Registers a custom toolbar button that calls a client-side function.
|
|
|
AddSnippet |
Adds a snippet from code-behind.
|
|
|
AddStyleFormat |
Adds a CSS class option from code-behind.
|
|
|
CreateChildControls |
Creates the child-control tree. This editor renders its textarea manually in
RenderContents(HtmlTextWriter) so TinyMCE receives the exact markup it expects;
no child controls are added here.
|
|
|
GetDialogBridgeScriptUrl |
Gets the URL of the BWAEditorDialogBridge.js embedded resource.
Dialog pages include this script to work with the BWAEditor
when opened with ?mode=bwa.
|
|
|
LoadFromEditorSettings |
Loads snippets, CSS classes, and style formats from ACSP EditorSettings.
Call after EditorSettings is assigned if setting up manually.
|
|
|
LoadPostData |
Implements LoadPostData(System.String,System.Collections.Specialized.NameValueCollection). Captures the posted
textarea value back into _content when it differs from the current content.
|
|
|
OnInit |
Raises the Init event. Ensures the Advantage
hosting context is present (throwing otherwise) and wires up ACSP editor settings.
|
|
|
OnLoad |
Raises the Load event. Registers the control to
participate in post-back data processing (every load, not just post-backs, so ASP.NET
routes post data to LoadPostData(String, NameValueCollection)) and loads ACSP editor settings on
first load.
|
|
|
OnPreRender |
Raises the PreRender event. Registers the TinyMCE
and BWAEditor bridge scripts at the top of the page (once per request) with the
current CSP nonce so the editor bootstraps before the body's init scripts run.
|
|
|
RaisePostDataChangedEvent |
Implements RaisePostDataChangedEvent. Currently a
no-op; override in a subclass or attach an event to raise a ContentChanged callback.
|
|
|
RenderBeginTag |
Writes the editor's opening markup (wrapper <div>, optional
<fieldset>, and legend) to the response stream.
|
|
|
RenderContents |
Writes the editor's body — the hosted <textarea> and the inline TinyMCE
init script — to the response stream.
|
|
|
RenderEndTag |
Writes the editor's closing markup (close fieldset and wrapper <div>) to
the response stream.
|
Properties
| Name | Description | |
|---|---|---|
|
|
AutoResizeHeight |
When true, the editor height grows automatically with content.
|
|
|
Content |
Gets or sets the HTML content of the editor from code-behind.
|
|
|
CurrentDomain |
Gets the domain currently scoped to this control.
|
|
|
CurrentLanguage |
Gets the language currently scoped to this control.
|
|
|
CurrentSql |
Gets the SQL helper scoped to the current request.
|
|
|
CurrentUser |
Gets the authenticated user executing the current request.
|
|
|
CustomButtons |
Custom toolbar buttons registered via code-behind.
|
|
|
DocumentManagerSearchPatterns |
Search patterns for the document manager dialog.
|
|
|
EditorHeight |
Gets or sets the editor height (CSS value, e.g. "400px" or "50vh").
|
|
|
EditorSettings |
ACSP editor settings loaded from the configuration engine.
|
|
|
EditorWidth |
Gets or sets the editor width (CSS value). Empty = 100%.
|
|
|
FileExplorerSettings |
File explorer settings from ACSP configuration.
|
|
|
ImageEditorSettings |
Image editor settings from ACSP configuration.
|
|
|
LicenseKey |
TinyMCE license key. Set to "gpl" for open-source usage.
|
|
|
Menubar |
TinyMCE menubar configuration. Set to false string to hide.
|
|
|
Plugins |
Comma-separated TinyMCE plugins to load.
|
|
|
ReadOnly |
Makes the editor read-only.
|
|
|
Snippets |
HTML snippets available in the Insert menu.
|
|
|
StyleFormats |
Custom style formats (CSS classes) available in the Formats dropdown.
|
|
|
StyleSheets |
Domain stylesheets to load into the editor content area.
|
|
|
Text |
Gets or sets the plain-text representation of the editor content.
Setting this property assigns the value as HTML content directly.
Getting strips HTML tags.
|
|
|
TinyMceScriptUrl |
URL to the TinyMCE script. Defaults to self-hosted path.
Set this to your CDN or local path.
When UseCdn is true, this is ignored and jsDelivr is used.
|
|
|
Title |
Title displayed as the fieldset legend.
|
|
|
Toolbar |
TinyMCE toolbar configuration string. Pipe-separated groups.
Set to empty string to use the ACSP EditorSettings toolbar translation.
|
|
|
UseCdn |
When true, loads TinyMCE from jsDelivr CDN instead of a local path.
Useful for quick testing. For production, self-host TinyMCE and set this to false.
|
|
|
UseFieldSet |
Wraps the editor in a fieldset element.
|

