quill-blot-formatter
quill-blot-formatter copied to clipboard
New Feature Request: Add an option to toggle overlay on click
It would be great if you could toggle the overlay off by tapping on it (not the resize handles of course). The motivation behind this is that, more often than not, when you load an image, it will take up the entire editor width. If your editor container has a constrained height and the image causes the container to overflow, you won't be able to scroll while the overlay is shown since you are trying to scroll the overlay. In short, when images are that big, its difficult to find the area to scroll as well as hide the overlay. Hopefully that makes sense.
I think this would be fairly easy if you change the overlay HTML by adding a div in the current container that acts as the overlay click handler. The divs representing the resize handles would then need to be laid on top and likely made larger for better click/touch targets to resize without accidentally toggling off the overlay.
Awesome library and very well written! Thank you so much.