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.v21.1.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:

Library Object Type Path to AllowedDocumentType
ASP.NET MVC Extensions HtmlEditorBinderSettings
.HtmlEditingSettings.AllowedDocumentType
HtmlEditorSettings
.SettingsHtmlEditing.AllowedDocumentType
MVCxHtmlEditor
.SettingsHtmlEditing.AllowedDocumentType
ASP.NET Web Forms Controls ASPxHtmlEditor
.SettingsHtmlEditing.AllowedDocumentType

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