How to Programmatically Trigger the ‘text-change’ Event in QuillJS
![How to Programmatically Trigger the ‘text-change’ Event in QuillJS](https://insideofcode.com/wp-content/uploads/2024/02/How-to-Programmatically-Trigger-the-text-change-Event-in-QuillJS.webp)
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!