HtmlEditorHtmlEditingSettings.AllowedDocumentType Property
Gets or sets a value that specifies what document types are allowed in the ASPxHtmlEditor.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v18.2.dll
Declaration
[DefaultValue(AllowedDocumentType.XHTML)]
public AllowedDocumentType AllowedDocumentType { get; set; }
Property Value
Type | Default | Description |
---|---|---|
AllowedDocumentType | **XHTML** | One of the AllowedDocumentType enumeration values. |
Available values:
Name | Description |
---|---|
XHTML | Only the XHTML 1.0 Transitional document type is allowed. |
HTML5 | Only the HTML 5 document type is allowed. |
Both | Both the XHTML 1.0 Transitional and HTML 5 document types are allowed. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to AllowedDocumentType |
---|---|
ASPxHtmlEditor |
|
HtmlEditorBinderSettings |
|
HtmlEditorSettings |
|
MVCxHtmlEditor |
|
Remarks
Use the AllowedDocumentType property to specify document types that are allowed within the editor. Elements that do not conform to the rules of the specified document type are removed.
See Also