From 2231f37a092728a52ae9c18a581052a94a6388e9 Mon Sep 17 00:00:00 2001 From: Bhuvaneshwari-SF4208 Date: Fri, 10 Oct 2025 17:19:28 +0530 Subject: [PATCH 1/4] 985781: Paste cleanup documentation improvement for Core/MVC --- .../EJ2_ASP.MVC/paste-cleanup.md | 61 ++++++++++------ .../EJ2_ASP.NETCORE/paste-cleanup.md | 68 +++++++++++------- .../images/richtexteditor-paste-prompt.png | Bin 0 -> 19156 bytes 3 files changed, 84 insertions(+), 45 deletions(-) create mode 100644 ej2-asp-core-mvc/rich-text-editor/images/richtexteditor-paste-prompt.png diff --git a/ej2-asp-core-mvc/rich-text-editor/EJ2_ASP.MVC/paste-cleanup.md b/ej2-asp-core-mvc/rich-text-editor/EJ2_ASP.MVC/paste-cleanup.md index 050be0a6dc..837e6e0678 100644 --- a/ej2-asp-core-mvc/rich-text-editor/EJ2_ASP.MVC/paste-cleanup.md +++ b/ej2-asp-core-mvc/rich-text-editor/EJ2_ASP.MVC/paste-cleanup.md @@ -8,50 +8,61 @@ publishingplatform: ##Platform_Name## documentation: ug --- - # Paste Cleanup in ##Platform_Name## Rich Text Editor Control -The Rich Text Editor simplifies the conversion of Microsoft Word content to HTML format, preserving formatting and styles. The `PasteCleanup` settings property allows you to control the formatting and styles when pasting content into the editor. The following settings are available to clean up the content: +The Rich Text Editor simplifies the conversion of Microsoft Word content to HTML format, preserving formatting and styles. The `pasteCleanup` settings property (see [pasteCleanupSettingsModel](https://help.syncfusion.com/cr/aspnetmvc-js2/syncfusion.ej2.richtexteditor.richtexteditor.html#Syncfusion_EJ2_RichTextEditor_RichTextEditor_PasteCleanupSettings)) allows you to control the formatting and styles when pasting content into the editor. The following settings are available to clean up the content: | API | Description | Default Value | Type | |:----------------:|:---------:|:-----------------------------:|:---------:| -| [Prompt](#Prompt) | Invokes a Prompt dialog with paste options when pasting content into the editor| false | boolean | -| [PlainText](#plain-text) | Paste the content as plain text| false | boolean | -| [KeepFormat](#keep-format) | Maintains the same format as the copied content| true | boolean | -| [DeniedTags](#denied-tags) | Ignores specified tags when pasting HTML content| null | string[] | -| [DeniedAttrs](#denied-attributes) | Filters out specified attributes from the pasted content| null | string[] | -| [AllowedStyleProps](#allowed-style-properties) | Accepts specified style attributes and removes others from the pasted content| ['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius', 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor', 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style', 'height', 'left', 'line-height', 'margin', 'margin-top', 'margin-left', 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width', 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right', 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-indent', 'top', 'vertical-align', 'visibility', 'white-space', 'width'] | string[] | +| [Prompt](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.RichTextEditor.RichTextEditorPasteCleanupSettings.html#Syncfusion_EJ2_RichTextEditor_RichTextEditorPasteCleanupSettings_Prompt) | Displays a dialog box when content is pasted, allowing users to choose how the content should be inserted—either as plain text, with formatting, or cleaned HTML. | false | boolean | +| [PlainText](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.RichTextEditor.RichTextEditorPasteCleanupSettings.html#Syncfusion_EJ2_RichTextEditor_RichTextEditorPasteCleanupSettings_PlainText) | Paste the content as plain text| false | boolean | +| [KeepFormat](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.RichTextEditor.RichTextEditorPasteCleanupSettings.html#Syncfusion_EJ2_RichTextEditor_RichTextEditorPasteCleanupSettings_KeepFormat) | Retains the original formatting of the pasted content, including styles, fonts, and structure.| true | boolean | +| [DeniedTags](https://help.syncfusion.com/cr/aspnetmvc-js2/Syncfusion.EJ2.RichTextEditor.RichTextEditorPasteCleanupSettings.html#Syncfusion_EJ2_RichTextEditor_RichTextEditorPasteCleanupSettings_DeniedTags) | Specifies a list of HTML tags to be removed from the pasted content, such as `