Closed (fixed)
Project:
Inline responsive images
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2016 at 20:33 UTC
Updated:
18 May 2017 at 21:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
afoster commentedThis is probably a duplicate of https://www.drupal.org/node/2802013 - Turn of Twig debugging to confirm. If you images re-appear than apply the patch.
Comment #3
jeroen_vreuls commentedI also have this issue. I find it only happens when you have either a caption enabled for the image or have set the alignment to center. You can quickly check the bug by toggling to source code mode in the editor. Once you've done that, the style attribute is empty.
I have checked the plugin JS of #2061377: [drupalImage] Optionally apply image style to images uploaded in CKEditor 5 and it's a bit different in the order of calling the original upcast function. In the attached patch I've also made these changes for this module. Please test this patch to see whether it resolves your issue.
Comment #4
keithm commentedConfirming this bug on Drupal 8.3.1.
@jeroen_betawerk thanks for the steps to reproduce. Your patch didn't apply with 'git apply' so I rerolled it.
Confirming that your patch fixed the problem.
Comment #6
keithm commentedComment #7
fkelly12054@gmail.com commentedFor what it's worth, I was an early user of this module but abandoned it when bugs started appearing in the second half of 2016. Given the absolute lack of progress with https://www.drupal.org/node/2061377 I revisited. I had already deactivated the previous version of inline responsive images (the one marked as stable) so I deleted it entirely and downloaded the 8.x-2.x-dev, installed and activated.
A quick test shows it working properly. Thanks @keithm and @betawerk.
Perhaps this could be fed back to the "mother" thread and form the basis for resolving this three year old issue for everyone.