Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
If i add images from Entity browser in ckeditor the image resize is not working. But it is working well if i add image from normal image button.
Comments
Comment #2
phenaproximaCan you be more specific? An animated GIF demonstrating the problem would be very helpful, or at least screenshots.
Comment #3
phenaproximaAlso, please bear in mind that Critical issue priority is really meant only for data loss or security-related problems. Thanks!
Comment #4
leopathu CreditAttribution: leopathu as a volunteer commentedHi,
You can see in this video (https://drive.google.com/file/d/0B64f6fd_8Jg1cWNPMWVGVXVMN00/view), First image uploaded through drupal image button, it has drag resize option, The second image uploaded through entity image. IT doesn't have that features.
Comment #5
leopathu CreditAttribution: leopathu as a volunteer commentedComment #6
phenaproximaComment #7
phenaproximaThis is a known issue. When you embed media entities in CKEditor -- even if they're images -- you can't resize them. It's a limitation of the fact that you're embedding a fully rendered entity, not just an
img
tag. I don't think this is something Lightning Media can fix easily -- although, now that core supports embedding media, it might be fixed there someday. I do understand that it's disappointing that this doesn't work out of the box, but to be fair, resizing embedded media (which may or may not be an image) is a complex problem with no easy solution.The closest workaround is, when you embed an image media item, to use an image style to display it in the appropriate size. That's nowhere near as good as being able to dynamically resize it with drag and drop, but it's something.
The reason it does work with CKEditor's image button is because that embeds a standard
img
tag, not a rendered Drupal entity, and resizingimg
tags is extremely straightforward.Since this issue has not seen any action in over 3 years, I'm closing it out since it technically works as designed.