{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "rich-text-editor-mention",
  "framework": "javascript",
  "type": "registry:component",
  "component": "RichTextEditor",
  "variant": "mention",
  "dependencies": [
    "@syncfusion/ej2-richtexteditor"
  ],
  "description": "Rich text editor sample integrating mentions and user tag suggestions in content.",
  "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/javascript/llms.txt",
    "skillPack": "syncfusion/javascript-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/javascript/rich-text-editor-mention.md"
  },
  "files": [
    {
      "target": "src/components/rich-text-editor-mention/rich-text-editor.html",
      "content": "<div class=\"control-section\">\n    <div class=\"sample-container\">\n        <div class=\"default-section\">\n            <div id=\"mentionEditor\"></div>\n            <div id=\"container\">\n\t\t<p>Hello \n                    <span contenteditable=\"false\" class=\"e-mention-chip\"><a href=\"mailto:maria@gmail.com\" title=\"maria@gmail.com\">@Maria</a></span>\n                </p>\n                <p>Welcome to the mention integration with rich text editor demo. Type <code>@</code> character and tag user from the suggestion list. </p>\n            </div>\n        </div>\n    </div>\n</div>\n\n<!-- custom code start -->\n<style>\n    #mention-TemplateList {\n        position: relative;\n        display: inline-block;\n        padding: 2px;\n    }\n    .person, .email {\n        display: block;\n        line-height: 20px;\n        text-indent: 5px;\n    }\n    .person {\n        font-size: 16px;\n    }\n    .mentionEmpImage {\n        display: inline-block;\n        width: 46px;\n        height: 46px;\n        padding: 3px;\n        border-radius: 25px;\n    }\n    #mention-TemplateList .e-badge-success {\n        left: 76%;\n        bottom: 4px;\n        top: auto;\n    }\n    #mention_integration_rte-edit-view_popup .e-dropdownbase .e-list-item {\n        line-height: 8px;\n    }\n    #mention-TemplateList .e-badge-success {\n        background-color: #4d841d;\n\t\tcolor: #fff;\n    }\n    #mention-TemplateList .e-badge-success.away {\n        background-color: #fedd2d;\n\t\tcolor: #fff;\n    }\n\t#mention-TemplateList .e-badge-success.busy {\n        background-color: #de1a1a;\n\t\tcolor: #fff;\n    }\n    #mention-TemplateList .e-badge.e-badge-dot {\n        height: 10px;\n        width: 10px;\n    }\n    #mention_integration .e-mention-chip{\n        cursor: pointer;\n    }\n</style>\n<!-- custom code end -->\n"
    },
    {
      "target": "src/components/rich-text-editor-mention/rich-text-editor.ts",
      "content": "import { RichTextEditor, Toolbar, Link, Image, HtmlEditor, QuickToolbar, PasteCleanup, Table, Video, Audio, ClipBoardCleanup, AutoFormat } from '@syncfusion/ej2-richtexteditor';\nRichTextEditor.Inject(Toolbar, Link, Image, HtmlEditor, QuickToolbar, PasteCleanup, Table, Video, Audio, ClipBoardCleanup, AutoFormat);\nimport { Mention } from '@syncfusion/ej2-dropdowns';\nimport { emailData } from '../datasource/rich-text-editor-data';\n\nexport function initRichTextEditorMention(): void {\n\n    let emailObj: Mention;\n    let defaultRTE: RichTextEditor = new RichTextEditor({\n        placeholder: 'Type @ and tag the name'\n     });\n    defaultRTE.appendTo('#container');\n\n    // Initialize Mention component.\n        emailObj = new Mention({\n        dataSource: emailData,\n        fields: { text: 'Name' },\n        suggestionCount: 8,\n        displayTemplate: '<a href=mailto:${EmailId} title=${EmailId}>@${Name}</a>',\n        itemTemplate: '<table><tr><td><div id=\"mention-TemplateList\"><img class=\"mentionEmpImage\" src=\"src/rich-text-editor/images/${Eimg}.png\" alt=\"employee\" /><span class=\"e-badge e-badge-success e-badge-overlap e-badge-dot e-badge-bottom ${Status}\"></span></div></td><td><span class=\"person\">${Name}</span><span class=\"email\">${EmailId}</span></td</tr></table>',\n        popupWidth: '250px',\n        popupHeight: '200px',\n        target: defaultRTE.inputElement,\n        allowSpaces: true,\n        suffixText: '&nbsp;'\n\n    });\n    emailObj.appendTo('#mentionEditor');\n}\n"
    }
  ]
}