THtmlArea displays a WYSIWYG text area on the Web page for user input in the HTML format. The text displayed in the THtmlArea component is specified or determined by using the Text property.
To enable the visual editting on the client side, set the property EnableVisualEdit to true (which is default value). To set the size of the editor when the visual editting is enabled, set the Width and Height properties instead of Columns and Rows because the latter has no meaning under the situation.
To prevent the text displayed in the component from being modified, set the ReadOnly property to true. (If EnableVisualEdit is set to true, the user will still be able to modify the text on the client side, however the server side text will not be changed. Future version of this component may correct this inconsistency.)
Note, Text will be HTML encoded before it is displayed in the THtmlArea component. If you don't want it to be so, set EncodeText to false.
Note, to use this component, you have to copy the directory "<framework>/js/htmlarea" to the "js" directory which should be under the directory containing the entry script file.
Namespace: System.Web.UI.WebControls
Properties
EnableVisualEdit, boolean, default=true, kept in viewstate
Gets or sets whether WYSIWYG editting capability should be enabled.
Culture, string, kept in viewstate
Gets or sets culture (language) of the displaying editor dialogs.
Options, string, kept in viewstate
Gets or sets a list of options for the WYSIWYG (TinyMCE) editor.
See http://tinymce.moxiecode.com/tinymce/docs/index.html for TinyMCE manual.
Compatibility
The client-side visual editting capability is supported by
Internet Explorer 5.5+ for Windows, Mozilla 1.3+, Mozilla Firefox, Netscape 7.1+ and any other Gecko-based browser. If the browser does not support the visual editting, a traditional textarea will be displayed.