Skip to content

Add an option to disable the new image resize feature (v2.4.0) #488

@tomohiro-okajima

Description

@tomohiro-okajima

@neilj

Hi, thank you for maintaining Squire.
I am using Squire in my application, and since updating to v2.4.0, the newly introduced image resize feature has caused some unexpected issues in our existing UX.

Current Behavior

In our application, users interact with images in the following ways:

  • Single-click on an image puts it into a selected state, after which they can press Ctrl+C or Ctrl+X to copy or cut the image.
  • Double-click opens our custom image editing dialog.

After updating to v2.4.0, the resize handles and resize behavior interfere with these interactions.
Specifically:

  • On single-click: The resize container intercepts keydown events, preventing copy/cut operations (Ctrl+C / Ctrl+X).
  • On double-click: When opening the image edit dialog, the resize container remains visible, and after editing (where the image element is replaced), the resize UI no longer behaves correctly.

Request

Could you please add an option to disable the image resize feature introduced in v2.4.0?

Something like:

new Squire(editorElement, {
  enableImageResize: false
});

This would help applications relying on custom image interactions maintain their existing UX.
Thank you for considering this request!

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