-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Editor doesn't preserve image size when pasting resized images from Google Docs #10838
Comments
Even if you set GHS to allow width/height attributes, it will not have any effect:
Attributes are assigned to wrapping Google Docs: |
I did a quick assessment on this. Google simply uses All we need to fix size retention for proportionally resized images is to add converter for However, we don't have any handling for image height in CKE5 so far, so if we were to handle non-proportionally resized image we'd need to add a handling for that which is a bigger task. For a reference here's the example HTML code placed in the clipboard (Chrome, didn't check other browsers):
|
Then I'm pretty sure this will also be a problem for Drupal. |
I think, this may also be a related issue: |
This issue was solved with the #14146. |
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
Pasted images has the same size as in Google Docs.
❌ Actual result
Image is pasted with its original size.
Image HTML has width/height attributes which doesn't seem to be taken into account when pasting:
❓ Possible solution
If you have ideas, you can list them here. Otherwise, you can delete this section.
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: