Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not possible to resize images and remove the set width and height values #273

Closed
jgpadua opened this issue Jul 22, 2024 · 1 comment
Labels

Comments

@jgpadua
Copy link

jgpadua commented Jul 22, 2024

Description

I'm not sure if this is a bug or something not implemented. But I would like to resize the images or at least remove the width and height values ​​that are added by default by CkEditor. This way I can't customize the aspect-ratio of the image to use what is defined in my style, since the values ​​are set inline in the source code.

I tried several customizations in the "Config options" but had no success.

Additional info

  • Craft version: 5.2.8
  • PHP version: 8.3
  • CkEditor: 4.1.0
@jgpadua jgpadua added the bug label Jul 22, 2024
@i-just
Copy link
Contributor

i-just commented Aug 9, 2024

Hi, thanks for reaching out!

CKEditor insists on keeping width and height attributes around.

You can resize your images via Asset Transforms. Here’s a related discussion that talks about image transforms: #94.

I hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants