Back to Devexpress

HtmlEditorHtmlEditingSettings.AllowedDocumentType Property

aspnet-devexpress-dot-web-dot-aspxhtmleditor-dot-htmleditorhtmleditingsettings.md

latest2.2 KB
Original Source

HtmlEditorHtmlEditingSettings.AllowedDocumentType Property

Specifies document type allowed in the ASPxHtmlEditor.

Namespace : DevExpress.Web.ASPxHtmlEditor

Assembly : DevExpress.Web.ASPxHtmlEditor.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(AllowedDocumentType.XHTML)]
public AllowedDocumentType AllowedDocumentType { get; set; }
vb
<DefaultValue(AllowedDocumentType.XHTML)>
Public Property AllowedDocumentType As AllowedDocumentType

Property Value

TypeDefaultDescription
AllowedDocumentTypeXHTML

One of the enumeration values.

|

Available values:

NameDescription
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

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

HTML Validation Parameters

HTML Validation

HTML Editor

HtmlEditorHtmlEditingSettings Class

HtmlEditorHtmlEditingSettings Members

DevExpress.Web.ASPxHtmlEditor Namespace