Skip to content

Adding support for double-click event handler on images #2258

Description

@ClementEXWiki

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

Activity

  1. nperez0111 commented on Dec 11, 2025

    @nperez0111
    Contributor

    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.

  2. ClementEXWiki commented on Dec 12, 2025

    @ClementEXWiki
    Author

    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).

  3. nperez0111 commented on Dec 12, 2025

    @nperez0111
    Contributor

    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

  4. locked and limited conversation to collaborators on Feb 5, 2026
  5. converted this issue into a discussion #2430 on Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions