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

How to cancel an image action outside of clicking on the editor #22

Open
FairyWorld opened this issue Apr 18, 2023 · 1 comment
Open

Comments

@FairyWorld
Copy link

image
How to cancel an image action outside of clicking on the editor
When I activate image action, clicking on another ___location inside the editor can close the image action, but clicking on an image action outside the editor still exists.
I want to cancel the image action after clicking on the editor, and reset the editor by calling setContent through JavaScript (not UI click behavior) to close the image action

@xeger
Copy link
Owner

xeger commented Apr 18, 2023

Hmm. This would be a nice improvement. I think it could be accomplished using some code changes in this module. Something like:

  • register a Quill on-blur event (if they have one)
  • or, just add an on-blur listener to the quill root div (we have access to it)

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

2 participants