quill-resize-module icon indicating copy to clipboard operation
quill-resize-module copied to clipboard

Left, Right, Center, Full image buttons trigger changes to other inputs on page

Open neo302 opened this issue 9 months ago • 2 comments

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!

neo302 avatar Feb 12 '25 01:02 neo302

^ upvote on this

Sophie1142 avatar Feb 24 '25 20:02 Sophie1142

create a minimal reproduction with JSFiddle, or CodePen please.

mudoo avatar Feb 27 '25 04:02 mudoo