Skip to main content

HtmlEditorHtmlEditingSettings.AllowedDocumentType Property

Specifies document type allowed in the ASPxHtmlEditor.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v24.1.dll

NuGet Package: DevExpress.Web


public AllowedDocumentType AllowedDocumentType { get; set; }

Property Value

Type Default Description
AllowedDocumentType XHTML

One of the enumeration values.

Available values:

Name Description

Only the XHTML 1.0 Transitional document type is allowed.


Only the HTML 5 document type is allowed.


Both the XHTML 1.0 Transitional and HTML 5 document types are allowed.


The ASPxHtmlEditor control does not support the DOCTYPE tag. Use the AllowedDocumentType property to specify the document type for the HTML content. The control removes elements that do not conform to the rules of the specified document type.

See Also