Gathering detailed insights and metrics for react-quill-emoji
Gathering detailed insights and metrics for react-quill-emoji
Gathering detailed insights and metrics for react-quill-emoji
Gathering detailed insights and metrics for react-quill-emoji
npm install react-quill-emoji
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1 Stars
184 Commits
5 Forks
3 Branches
1 Contributors
Updated on 10 Feb 2023
JavaScript (73.89%)
CSS (26.11%)
Cumulative downloads
Total Downloads
Last day
-1.6%
437
Compared to previous day
Last week
2.8%
2,143
Compared to previous week
Last month
-11.9%
9,202
Compared to previous month
Last year
74.3%
120,091
Compared to previous year
2
1
Module extension for Quill.js that handles emojis in the toolbar. Through this extension, you can add emojis through the toolbar at the top, or by typing the emoji code.
To add an emoji via emoji code, type :
followed by the first few letters, and an autocomplete menu will appear. You can then select or tab
to the preferred emoji.
1yarn add quill-emoji
1const toolbarOptions = { 2 container: [ 3 ['bold', 'italic', 'underline', 'strike'], 4 ['emoji'], 5 ], 6 handlers: {'emoji': function() {}} 7} 8const quill = new Quill(editor, { 9 // ... 10 modules: { 11 // ... 12 toolbar: toolbarOptions, 13 "emoji-toolbar": true, 14 "emoji-textarea": true, 15 "emoji-shortname": true, 16 } 17});
See emoji-list.js for emoji list example
1// Custom emoji-list 2const emojiList = [ /* emojiList */ ]; 3 4// MDI emojicon instead of default icon 5const emojiIcon = '<svg class="i" viewBox="0 0 24 24"><use href="#emoticon-happy"></use></svg>'; 6 7const quill = new Quill(editor, { 8 // ... 9 modules: { 10 // ... 11 "emoji-shortname": { 12 emojiList: emojiList, 13 fuse: { 14 shouldSort: true, 15 threshold: 0.1, 16 location: 0, 17 distance: 100, 18 maxPatternLength: 32, 19 minMatchCharLength: 1, 20 keys: [ 21 "shortname" 22 ] 23 }, 24 onOpen: function() { /* ... */ }, 25 onClose: function(emojiListItem) { /* ... */ } 26 }, 27 "emoji-toolbar": { 28 buttonIcon: emojiIcon 29 }, 30 "emoji-textarea": { 31 buttonIcon: emojiIcon 32 } 33 34 } 35});
If you need to display the emojis in a different way, you can customize the emoji blot by creating a new blot or extending the default emoji blot.
1import Quill from 'quill'; 2 3const Embed = Quill.import('blots/embed'); 4 5class EmojiBlot extends Embed { 6 // Customized version of src/format-emoji-blot.js 7 // ... 8} 9 10EmojiBlot.blotName = 'emoji'; 11EmojiBlot.tagName = 'span'; 12 13Quill.register({ 14 'formats/emoji': EmojiBlot 15}, true);
Please check out our contributing guidelines. )
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
78 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More