-
Notifications
You must be signed in to change notification settings - Fork 24
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
Incorrect aspect-ratio set on inserted images #335
Comments
Hi, thanks for reaching out! It sounds like the default max image length that comes from the HTML Purifier (the default value is 1200). You can change it via the I hope this helps! I’ll close this now, but feel free to reach out if you run into any further issues! |
Hi @i-just, thanks for the clarification. Would this be considered a breaking change? It only started happening after a recent update. Prior to that, I don't believe any aspect ratio was being added automatically. Per our client, it seems to be forcing non-square image to appear as squares... |
Hi @i-just, I appreciate the info—didn't know about that config setting! IMO, that doesn't seem like the best way to handle the issue though as it becomes a guessing game on picking a @lindseydiloreto, an additional quick "fix" to avoid the issue is to set
I offer two potential ways to address the root issue of the incorrect aspect-ratio value:
|
According to the CKEditor’s documentation Here’s a bit more info about why CKEditor 5 insists on using width, height and aspect-ratio attributes. @lindseydiloreto, are the image dimensions (both width and height) above the @vonscriptor, you can disable I hope this helps! |
@vonscriptor @lindseydiloreto |
Description
It seems that inserted images will be given the generic 1200/1200 aspect ratio. On the initial insert of an image it appears to output the correct dimensions for the aspect ratio, but if you view source it'll show the generic aspect ratio values. The incorrect value doesn't seem to be updated until another save is made, like adding caption text to the image.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: