How to trigger text-change with quill.js?

Member

by orpha , in category: Javascript , 9 months ago

How to trigger text-change with quill.js?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by muriel.schmidt , 9 months ago

@orpha 

You can trigger a text-change event with quill.js by subscribing to the 'text-change' event like this:

1
2
3
4
5
var quill = new Quill('#editor');

quill.on('text-change', function(delta, oldDelta, source) {
  console.log('Text changed');
});


This code snippet creates a new Quill editor and subscribes to the 'text-change' event. The event handler function will be called whenever the text in the editor is changed. You can then perform any necessary actions inside the event handler function.

Related Threads:

How to change the dropdown text in quill.js?
How to change the margins on quill.js toolbar?
How to change value change text in laravel?
How to remove or change the default font in quill.js?
How to change the default text in dropzone.js?
How to change woocommerce "sort by" text?