BWAEditor Methods
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.
|

