Back to Devexpress

HtmlEditorContentElementFiltering.StyleAttributeFilterMode Property

aspnet-devexpress-dot-web-dot-aspxhtmleditor-dot-htmleditorcontentelementfiltering-816be25d.md

latest2.9 KB
Original Source

HtmlEditorContentElementFiltering.StyleAttributeFilterMode Property

Specifies the filtering mode for style attribute elements.

Namespace : DevExpress.Web.ASPxHtmlEditor

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

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(HtmlEditorFilterMode.BlackList)]
public HtmlEditorFilterMode StyleAttributeFilterMode { get; set; }
vb
<DefaultValue(HtmlEditorFilterMode.BlackList)>
Public Property StyleAttributeFilterMode As HtmlEditorFilterMode

Property Value

TypeDefaultDescription
HtmlEditorFilterModeBlackList

One of the HtmlEditorFilterMode enumeration values.

|

Available values:

NameDescription
BlackList

Specified elements are prohibited and will be removed; other elements will be maintained.

| | WhiteList |

Specified elements are allowed and will be maintained; other elements will be removed.

|

Remarks

ASPxHtmlEditor provides you with the capability to filter content elements. You can specify filter rules for tags, attributes, and style attributes.

Use the StyleAttributeFilterMode property to specify the filtering mode that is applied to the style attribute elements listed in the HtmlEditorContentElementFiltering.StyleAttributes property.

See Also

StyleAttributes

Tags

TagFilterMode

Attributes

AttributeFilterMode

Online Demo: HTML Editor - Content Element Filtering

HtmlEditorContentElementFiltering Class

HtmlEditorContentElementFiltering Members

DevExpress.Web.ASPxHtmlEditor Namespace