Skip to main content
A newer version of this page is available. .

HtmlEditorHtmlEditingSettings.AllowStyleAttributes Property

Gets or sets a value that specifies whether the editor’s HTML markup can contain style attributes.

Namespace: DevExpress.Web.ASPxHtmlEditor

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

Declaration

[DefaultValue(true)]
public bool AllowStyleAttributes { get; set; }

Property Value

Type Default Description
Boolean **true**

true if style attributes are allowed within the editor’s content; false if style attributes are automatically removed from the editor’s HTML markup.

Property Paths

You can access this nested property as listed below:

Object Type Path to AllowStyleAttributes
ASPxHtmlEditor
.SettingsHtmlEditing.AllowStyleAttributes
HtmlEditorBinderSettings
.HtmlEditingSettings.AllowStyleAttributes
HtmlEditorSettings
.SettingsHtmlEditing.AllowStyleAttributes
MVCxHtmlEditor
.SettingsHtmlEditing.AllowStyleAttributes
See Also