Skip to content

Instantly share code, notes, and snippets.

View satyapendem's full-sized avatar
🎯
Focusing

Satya Pendem satyapendem

🎯
Focusing
View GitHub Profile
@felipeochoa
felipeochoa / comment-form.js
Created April 7, 2017 16:35
@-mentions for Quill
const quillModules = {
toolbar: ["bold", "italic", "underline", "strike"],
// mentions is added in constructor
keyboard: {
bindings: {
tab: {
key: 9,
handler: function(range, context) {
return this.quill.mentionHandler(range.context);
}