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

leopathu created an issue. See original summary.

phenaproxima’s picture

Status: Active » Postponed (maintainer needs more info)

Can you be more specific? An animated GIF demonstrating the problem would be very helpful, or at least screenshots.

phenaproxima’s picture

Priority: Critical » Normal

Also, please bear in mind that Critical issue priority is really meant only for data loss or security-related problems. Thanks!

leopathu’s picture

Hi,

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.

leopathu’s picture

Status: Postponed (maintainer needs more info) » Active
phenaproxima’s picture

Project: Lightning » Lightning Media
Version: 8.x-2.16 » 8.x-2.x-dev
Component: Media » Code
phenaproxima’s picture

Status: Active » Closed (works as designed)

This 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 resizing img 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.