ASPxHtmlEditor is a rich-text WYSIWYG HTML editor for ASP.NET. Its intuitive user interface enables even inexperienced users to edit HTML page contents with ease. This demo describes several of the features available to you when using the ASPxHtmlEditor control.
The ASPxHtmlEditor automatically performs validation of the entered HTML code and is able to remove all potentially harmful code. The editor exposes several options, allowing you to control required automatic transformations.
Use the AllowScript, AllowIFrames, AllowFormElements, AllowIdAttributes, and AllowStyleAttributes properties to control whether tags and attributes of certain predefined types – scripts, IFRAME, form elements, ID attributes, and style attributes respectively – are allowed within the editor's HTML code.
The UpdateDeprecatedElements property specifies whether deprecated elements (such as u, s, strike, font, center) occurring within the editor's HTML markup should be replaced with their valid analogs.
The UpdateBoldItalic property specifies the necessity of converting the b and i elements into the strong and em elements respectively.
The EnterMode property allows you to specify the editor's behavior when the ENTER key is pressed by an end-user – you can choose between a paragraph or line break rendering.
The AllowedDocumentType property specifies the document types that are allowed within the editor. The available options are: XHTML 1.0 Transitional, HTML 5, or both. HTML code entered into the editor's HTML View is automatically transformed according to the specified document type.
The AllowDesignView, AllowHtmlView and AllowPreview properties specify which editor views are available to end-users.
If Design View is active within the ASPxHtmlEditor, a specific context menu can be displayed for end-users, which is controlled by the editor's AllowContextMenu property.