Closed (fixed)
Project:
CKEditor Image2 - Enhanced Image plugin with HTML5 caption support
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2015 at 23:24 UTC
Updated:
25 Mar 2016 at 18:54 UTC
Jump to comment: Most recent
Comments
Comment #2
jwilson3More background from dmkelner via email:
In my testing, it looks like there is no way to unset width: auto with more css overrides… so the only option is to copy the ckeditor_image2.responsive.css and/or the ckeditor.css file into your theme and remove the line that sets width:auto, then register the overridden file in your theme’s info file.
This needs to be investigated further to see if the problem is with ckeditor.css (as mentioned by Dori) or if it is ckeditor_image2.responsive.css, and if we can remove the
width:autowithout any visual repercussions.Comment #4
jwilson3I've pushed a fix to 7.x-1.x branch for this.
Comment #5
dmkelner commentedThanks, I was just asked about this, so great timing. I'll test it out this week. :)
Comment #6
dmkelner commentedThis is working out of the box to retain the image size. However, it does not appear to honor align-left or align-right. My old code with the image showing at full size generated:
<img class="align-left" width="226" height="151" src="/sites/default/files/images/Lance%20Cooper2.png" alt="">My new code generated:
<img width="180" height="120" src="/sites/default/files/images/Lance%20Cooper2.png" alt="">You can see that it honored the resizing, but is ignoring the alignment. Tested this with right align as well and no luck.
I do obviously have align-left and align-right classes allowed in the text format.