diff --git a/ej2-javascript/rich-text-editor/images/richtexteditor-paste-prompt.png b/ej2-javascript/rich-text-editor/images/richtexteditor-paste-prompt.png new file mode 100644 index 000000000..3f558c905 Binary files /dev/null and b/ej2-javascript/rich-text-editor/images/richtexteditor-paste-prompt.png differ diff --git a/ej2-javascript/rich-text-editor/paste-cleanup.md b/ej2-javascript/rich-text-editor/paste-cleanup.md index ba96439ab..f5a330e47 100644 --- a/ej2-javascript/rich-text-editor/paste-cleanup.md +++ b/ej2-javascript/rich-text-editor/paste-cleanup.md @@ -1,7 +1,7 @@ --- layout: post title: Paste cleanup in ##Platform_Name## Rich text editor control | Syncfusion -description: Learn here all about Paste cleanup in Syncfusion ##Platform_Name## Rich text editor control of Syncfusion Essential JS 2 and more. +description: Learn how to configure Paste Cleanup in the Syncfusion ##Platform_Name## Rich text editor control of Syncfusion Essential JS 2 and more. platform: ej2-javascript control: Paste cleanup publishingplatform: ##Platform_Name## @@ -11,49 +11,61 @@ domainurl: ##DomainURL## # 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://ej2.syncfusion.com/documentation/api/rich-text-editor/pasteCleanupSettingsModel/)) 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://ej2.syncfusion.com/documentation/api/rich-text-editor/pasteCleanupSettingsModel/#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://ej2.syncfusion.com/documentation/api/rich-text-editor/pasteCleanupSettingsModel/#plaintext) | Paste the content as plain text | false | boolean | +| [keepFormat](https://ej2.syncfusion.com/documentation/api/rich-text-editor/pasteCleanupSettingsModel/#keepformat) | Retains the original formatting of the pasted content, including styles, fonts, and structure.| true | boolean | +| [deniedTags](https://ej2.syncfusion.com/documentation/api/rich-text-editor/pasteCleanupSettingsModel/#deniedtags) | Specifies a list of HTML tags to be removed from the pasted content, such as `