ASPxHtmlEditorHtmlEditingSettings.PasteFiltering Property
Provides access to settings that relate to content element filtering.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
HtmlEditorContentElementFiltering | An HtmlEditorContentElementFiltering object that contains content element filtering settings. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to PasteFiltering |
---|---|
ASPxHtmlEditor |
|
HtmlEditorBinderSettings |
|
HtmlEditorSettings |
|
MVCxHtmlEditor |
|
Remarks
ASPxHtmlEditor provides you with the capability to filter content elements. Use the PasteFiltering property to specify filter rules for tags, attributes, and style attributes.
Note
Note that the PasteFiltering property is used to filter only the content that a user pastes into the Html Editor. In this case, the rules specified by the PasteFiltering property don’t affect the existing content. To filter the entire editor’s content automatically, use the HtmlEditorHtmlEditingSettings.ContentElementFiltering property.
[ASPx]
<dx:ASPxHtmlEditor runat="server" ID="ASPxHtmlEditor1">
<SettingsHtmlEditing>
<PasteFiltering StyleAttributeFilterMode="BlackList" StyleAttributes="margin, font-family, font-size, line-height, break-after, break-inside" />
</SettingsHtmlEditing>
</dx:ASPxHtmlEditor>
To learn more, see the Content Element Filtering topic.