Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify quill editor instance in event, with multiple editors on the same page #4531

Open
mulitreiber opened this issue Dec 16, 2024 · 0 comments

Comments

@mulitreiber
Copy link

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
@mulitreiber 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant