You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background:
My page will have a variable amount of editor instances. Content of those editors will be fetched from and saved to a db.
Question:
Upon a 'text-change' event, how do i identify which editor instance fired this event ? I need this to save the content along an id of this editor.
Annotation:
When creating the editor instance i' registering a callback function for the event
quill.on('text-change', callback);
Maybe there is a way to influence this callback e.g. inject some id.
Like in dom events i would prefer to have a reference to the source of the event and fetch the id from there.
Version:
quill 2.0.3
The text was updated successfully, but these errors were encountered:
mulitreiber
changed the title
Identify quill editor in event, with multiple editors on the same page
Identify quill editor instance in event, with multiple editors on the same page
Dec 16, 2024
Background:
My page will have a variable amount of editor instances. Content of those editors will be fetched from and saved to a db.
Question:
Upon a 'text-change' event, how do i identify which editor instance fired this event ? I need this to save the content along an id of this editor.
Annotation:
When creating the editor instance i' registering a callback function for the event
quill.on('text-change', callback);
Maybe there is a way to influence this callback e.g. inject some id.
Like in dom events i would prefer to have a reference to the source of the event and fetch the id from there.
Version:
The text was updated successfully, but these errors were encountered: