{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "rich-text-editor-paste-from-ms-word",
  "framework": "react",
  "type": "registry:component",
  "component": "RichTextEditor",
  "variant": "paste-from-ms-word",
  "dependencies": [
    "@syncfusion/ej2-react-dropdowns",
    "@syncfusion/ej2-react-richtexteditor"
  ],
  "description": "Rich text editor with paste-from-Word cleanup rules and a format-prompt dropdown.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/react/llms.txt",
    "skillPack": "syncfusion/react-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/react/js/rich-text-editor-paste-from-ms-word.md"
  },
  "files": [
    {
      "target": "src/components/rich-text-editor-paste-from-ms-word/RichTextEditor.jsx",
      "content": "/**\n * Rich Text Editor Paste Cleanup sample\n */\nimport { HtmlEditor, Image, Inject, Link, PasteCleanup, QuickToolbar, RichTextEditorComponent, Toolbar, Table, Video, Audio, ClipBoardCleanup, AutoFormat } from '@syncfusion/ej2-react-richtexteditor';\nfunction PasteCleanupRTE() {\n    const pasteCleanupSettings = {\n        prompt: true,\n        plainText: false,\n        keepFormat: false\n    };\n    return (<div className='control-pane'>\n            <div className='col-lg-8'>\n                <div className='control-section' id=\"rteAPI\">\n                    <div className='rte-control-section'>\n                        <RichTextEditorComponent id=\"PasteCleanup\" pasteCleanupSettings={pasteCleanupSettings}>\n                            <h4>Paste Cleanup in Rich Text Editor<br /></h4><p>The Rich Text Editor automatically <strong>cleans up formatted content</strong> when you paste from external sources like Word, Google Docs, or web pages.</p><p><b>Paste Cleanup properties:</b></p>\n                                <ul>\n                                    <li><strong>Prompt </strong>- specifies whether to enable the prompt when pasting in Rich Text Editor\n                                    </li>\n                                    <li><strong>Plain Text </strong>- specifies whether to paste as plain text or not in Rich Text Editor.\n                                    </li>\n                                    <li><strong>Keep Format</strong>- specifies whether to keep or remove the format when pasting in Rich Text Editor.\n                                    </li>\n                                    <li><strong>Denied Tags</strong> - specifies the tags to restrict when pasting in Rich Text Editor.\n                                    </li>\n                                    <li><strong>Denied Attributes</strong> - specifies the attributes to restrict when pasting in Rich Text Editor.\n                                    </li>\n                                    <li><strong>Allowed Style Properties</strong> - specifies the allowed style properties when pasting in Rich Text Editor.\n                                    </li>\n                                </ul>\n                                <p><span><strong>Try It Out!</strong></span></p><p>Copy content from a web page or document and paste it here. The editor will display a prompt and allow you to input your options.</p>\n                            <Inject services={[Toolbar, Image, Link, HtmlEditor, QuickToolbar, PasteCleanup, Table, Video, Audio, ClipBoardCleanup, AutoFormat]}/>\n                        </RichTextEditorComponent>\n                    </div>\n                </div>\n            </div>\n        </div>);\n}\nexport default PasteCleanupRTE;\n"
    }
  ]
}