HtmlSettingsAttribute.StyleAttributesFilter Property
Gets or sets the style attribute elements that will be filtered according to the specified filter mode.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
Type | Description |
---|---|
String | A String value that contains the style attribute elements. |
Remarks
HtmlEditor provides you with the capability to filter content elements. You can specify filter rules for tags, attributes, and style attributes.
Use the StyleAttributesFilter property to specify a comma-separated list of style attribute elements that will be maintained or removed (based on the HtmlSettingsAttribute.StyleAttributeFilterMode property value) from the editor content.
[HtmlSettings(StyleAttributeFilterMode = HtmlEditorFilterMode.WhiteList, StyleAttributesFilter = "color, text-align")]
See Also