Lance O. Posted October 9, 2013 Posted October 9, 2013 If I upload an image to a multiple images field, then add the image to the body field of the same page and select No alignment, the following class is assigned to the image ("No Alignment"): <p><img class="No Alignment" src="/site/assets/files/1001/image.png" alt="Example" /></p> This seems like a bug since it registers as two separate classes ("No" and "Alignment"). Can this be changed to a single (lowercase) class that doesn't include a space (or not included altogether, since it assumes the image is inline)?
ryan Posted October 13, 2013 Posted October 13, 2013 I'm not able to duplicate this one. Anyone else seeing it? I've tried on both PW 2.3.0 stable and 2.3.5 dev, with both TinyMCE and CKEditor. "No Alignment" is not intended to be a CSS class. It sounds like somehow the option label is ending up as the CSS class in your case rather than the option value.
Lance O. Posted October 14, 2013 Author Posted October 14, 2013 When you are in the modal and can select an alignment, first select something other than the No Alignment option. Then, immediately change your selection to No Alignment and insert the image. The No Alignment class appears in the code. So it looks like it only appears when the alignment option is changed to No Alignment from one of the other options. 1
adrian Posted October 14, 2013 Posted October 14, 2013 I can replicate this using the latest dev from a couple of days ago. 1
pogidude Posted October 18, 2013 Posted October 18, 2013 I can replicate this too. Also using dev version. I ended up styling for .No.Alignment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now