HtmlSettingsAttribute.AllowedDocumentType Property
Gets or sets a value that specifies what document types are allowed in the HtmlEditor.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
AllowedDocumentType | 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. |
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