I'm working on a Drupal site using CKEditor so I'm not sure if this is a CK or a Drupal problem. The editor works great but I am still having one problem.
I've set up a text format called "editor" and have allowed tags in the allowed tags html filtering.
I've configured CK by disabling ACF. I've also put in "config.allowedContent = true;" into the Custom JavaScript Configuration textarea, in the Adavanced Options section. All CK profiles I've done this for.
I have the styles dropdown in my toolbar for the CK profile that uses the "editor" text format. I've copied the configuration.styles.js file into my theme and have created a style to float my images to either side- left or right.
No matter what I do, the editor will strip out any style="float:left" or style="float:right" from my code. Even if I just hard-code it in the source view. Other attributes I put in like class or id, work just fine. I can see that when I use the styles pulldown, the style="float:left;" or style="float:right;" works, but upon saving my file, it gets stripped out. If I'm in the Full HTML text format, all works fine. What am I missing?