This piece of code won't save in source mode
<img src="/images/test.jpg" height="300" width="450" style="width: 350px; height: auto;" />
When I put this in source mode and click back to wysiwyg mode, CKEditor strips height/width attributes . This is what I see then
<img src="/images/test.jpg" style="width: 350px; height: auto;" />
But I need it to save both styles and attrubutes (style height/width and attributes height/width).
I tried using this config below, but it doesn't work
config.allowedContent = 'img{*}[*](*)'
I also tried
config.allowedContent = true;
and it did work, but my config.disallowedContent do not work then.
I believe the editor ignores styles and/or attributes (whichever goes first?) while HTML code parcing.
allowedExtraContentis what you set, and allowContent is a Boolean. - epascarello