You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding support for double-click event handler on images #2258
Is your feature request related to a problem? Please describe.
I'd like to open a fully-featured edition modal when double-clicking on an image, instead of requiring the user to use the toolbar.
Describe the solution you'd like
Allow registering a double-click event handler for inline and block images.
Maybe you could share what is missing from the toolbar that makes you feel like you need to open a whole modal for it?
I would imagine that you need something for more advanced editing like cropping or other image editing tools.
I personally would think that it would be easiest to implement an additional button as part of the image's toolbar which triggers the opening of the modal that you need. Like a "Edit" button, within that toolbar, which then triggers opening a modal.
As for double-clicking on an image, I can probably add that as part of this change, so you can capture the event yourself, but I'm not certain on this approach yet.
I need to open a modal that shows a huge gallery of photos along with a pretty complex list of options, and that should take the whole screen space.
Our current product uses CKEditor and shows a large modal when double-clicking on images, and we'd like to mimic this behavior, avoiding to require additional steps from the user (clicking to open the toolbar -> moving the cursor to the edition icon -> clicking on it).
Alright, well I'll have to think on whether this is how we want to expose events like this. I'm not sure that it is the best pattern for adding customizations to the default blocks
Activity
nperez0111 commentedon Dec 11, 2025
Hi, @ClementEXWiki
Maybe you could share what is missing from the toolbar that makes you feel like you need to open a whole modal for it?
I would imagine that you need something for more advanced editing like cropping or other image editing tools.
I personally would think that it would be easiest to implement an additional button as part of the image's toolbar which triggers the opening of the modal that you need. Like a "Edit" button, within that toolbar, which then triggers opening a modal.
As for double-clicking on an image, I can probably add that as part of this change, so you can capture the event yourself, but I'm not certain on this approach yet.
ClementEXWiki commentedon Dec 12, 2025
Hi, thanks for answering so quickly!
I need to open a modal that shows a huge gallery of photos along with a pretty complex list of options, and that should take the whole screen space.
Our current product uses CKEditor and shows a large modal when double-clicking on images, and we'd like to mimic this behavior, avoiding to require additional steps from the user (clicking to open the toolbar -> moving the cursor to the edition icon -> clicking on it).
nperez0111 commentedon Dec 12, 2025
Alright, well I'll have to think on whether this is how we want to expose events like this. I'm not sure that it is the best pattern for adding customizations to the default blocks