quill-resize-module
quill-resize-module copied to clipboard
Left, Right, Center, Full image buttons trigger changes to other inputs on page
Hello, Thank you for creating this. When clicking the left, right, center, full buttons to move / adjust an image using the toolbar, it attempts to change inputs on my page. Each time I click left, right, center, or full, it moves to the next input on my page. I'm using a configuration like you have in the demo.
resize: { // set embed tags to capture resize embedTags: ["VIDEO", "IFRAME"], // custom toolbar tools: [ "left", "center", "right", "full", "edit", { text: "Alt", verify(activeEle) { return activeEle && activeEle.tagName === "IMG"; }, handler(evt, button, activeEle) { let alt = activeEle.alt || ""; alt = window.prompt("Alt for image", alt); if (alt == null) return; activeEle.setAttribute("alt", alt); }, }, ], },
Do you know how I could prevent this? Thank you!
^ upvote on this