• Material 3
  • Bootstrap 5
  • Fluent 2
  • Tailwind CSS
  • Fluent 2 High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Theme Mode
Localization
*Translated by Google Translator.
Currency

Example of Paste Cleanup in ASP.NET Core Block Editor Control

This sample demonstrates the Block Editor PasteCleanupSettings property allows you to define various options to control how content is pasted into the editor.

DEMO
SOURCE

The following settings are available to cleanup the content in pasteCleanup settings property:

  • Select any option in Format Option drop down list for the paste content.
    • Select the Plain Text option to paste the content as plain text.
    • Select the Keep Format option to keep the same format in the copied content.
  • Fill the denied tags text box to ignore the tags when pasting HTML content.
    • ['a[!href]'] - paste the content by filtering anchor tags that don’t have the 'href' attribute.
    • ['a[href, target]'] - paste the content by filtering anchor tags that have the 'href' and 'target' attributes
  • Fill the allowed style properties to paste the content by accepting these style attributes and removing other attributes.
    • ['color', 'margin'] - This will allow only the style properties 'color' and 'margin' in each pasted element.
Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab