How to Programmatically Trigger the ‘text-change’ Event in QuillJS

I tried to figure it out on my own. Yesterday, I encountered an issue with customizing QuillJS to manually trigger the text-change event from the code

Hi there! So, I’ve been trying to debug some code, but I couldn’t find a solution on Google or sites like Stack Overflow. I tried to figure it out on my own. Yesterday, I encountered an issue with customizing QuillJS to manually trigger the text-change event from the code. Here’s the solution:

editor.emitter.emit('text-change')

This will emit the text-change event from the QuillJS editor instance.

How did I find that solution? Well, I read the source code on GitHub, of course!

Inside of Code
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.