Listen to key press Enter in Quill.js
According to the documentation, Quill can handle the Enter key but I can't make it work. I have followed these steps listed on their site: Import Keyboard module: const Keyboard = Quill.import('modules/keyboard'); Quill.js Extension import documentation. Add the custom event called key binding. Quill.js Key binding documentation Call a function to handle the event. My code is the following: quill.keyboard.addBinding({ key: Keyboard.keys.ENTER, handler: function(range, context) { console.log('Enter Key!!!'); result.innerText = 'Key presset = ENTER'; } }) Code example I have tried on Chrome