Adding support for double-click event handler on images #2430
Replies: 3 comments
-
|
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 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. |
Beta Was this translation helpful? Give feedback.
-
|
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). |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.
Describe alternatives you've considered
N/A
Additional context
N/A
Beta Was this translation helpful? Give feedback.
All reactions