{"id":13773979,"url":"https://github.com/team-loxo/summernote-at-mention","last_synced_at":"2025-12-14T21:41:12.226Z","repository":{"id":28524602,"uuid":"118629795","full_name":"team-loxo/summernote-at-mention","owner":"team-loxo","description":"@mention plugin for summernote with support for autocomplete.","archived":false,"fork":false,"pushed_at":"2023-07-11T13:24:51.000Z","size":242,"stargazers_count":4,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-02-14T06:36:05.581Z","etag":null,"topics":["mention","plugin","summernote"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/team-loxo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-23T15:32:29.000Z","updated_at":"2024-01-20T12:00:37.000Z","dependencies_parsed_at":"2024-01-13T12:03:21.410Z","dependency_job_id":null,"html_url":"https://github.com/team-loxo/summernote-at-mention","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-loxo%2Fsummernote-at-mention","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-loxo%2Fsummernote-at-mention/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-loxo%2Fsummernote-at-mention/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/team-loxo%2Fsummernote-at-mention/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/team-loxo","download_url":"https://codeload.github.com/team-loxo/summernote-at-mention/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253528362,"owners_count":21922623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mention","plugin","summernote"],"created_at":"2024-08-03T17:01:22.593Z","updated_at":"2025-12-14T21:41:07.174Z","avatar_url":"https://github.com/team-loxo.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Insert"],"readme":"# Summernote @mention plugin\n## Usage\n1. Include the `bundle.js` file in your javascript.\n2. In the `callbacks` option passed to Summernote, include the configuration object.\n\n## Configuration Object\nThe configuration object that should be passed into the `callbacks` option to Summernote has the following structure:\n\n```javascript\n{\n  getSuggestions: (value) =\u003e ['Array of strings'],\n  onSelect: (value) =\u003e {},\n}\n```\nThis object should be passed via the `summernoteAtMention` key within the `callbacks` option passed to Summernote.\n\nThe first function `getSuggestions` takes in a string via the `value` argument and should return a list of strings that will be presented as options to the user.\n\nThe second function `onSelect` gets called once a user selects an option using the `ENTER` key. It is passed the selected value via the `value` argument. If no such function is provided, the default behavior is to fill in the the text after the `@` sign with the selected option.\n\n## Example\n\n```javascript\n$('#summernote').summernote({\n  placeholder: 'Placeholder',\n  toolbar: [['style', ['style']]],\n  callbacks: {\n    summernoteAtMention: {\n      getSuggestions: = (value) =\u003e {\n        const userEmails = ['cecilia@email.co', 'pedro@email.co'];\n        return userEmails.filter((email) =\u003e {\n          return sample.includes(value) \u0026\u0026 sample !== value\n        });\n      },\n    },\n  },\n})\n```\n\n## Contributing\nAll ideas and contributions are welcome! Please use the `Issues` tab.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteam-loxo%2Fsummernote-at-mention","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteam-loxo%2Fsummernote-at-mention","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteam-loxo%2Fsummernote-at-mention/lists"}