Using the The filter with CKEditor
When in un-filtered mode output is:

<img alt="" class="media-image" style="margin-left: 20px; margin-right: 20px; margin-top: 20px; margin-bottom: 20px; float: left; width: 320px; height: 239px; " typeof="foaf:Image" src="http://domain.com/sites/beta.com/files/styles/large/public/Wang_Family_Courtyard_1.jpg" />

When the filter is on the output is:
<img alt="" style="float:left; width:320px; height:239px" typeof="Image" src="http://domain.com/sites/beta.com/files/styles/large/public/Wang_Family_Courtyard_1.jpg" />

My HTML elements in the white list box is set to:

a[!href|target<_blank|title],
div[align<center?justify?left?right],
p[align<center?justify?left?right],
br,span,em,strong,cite,code,blockquote,ul,ol,li,dl,dt,dd,
img[!src|alt|title|style|width|height|margin-left|margin-right|margin-top|margin-bottom|float|class|typeof],
@[class|style|title]

Screen shot of other settings attached.

Looked at -- http://drupal.org/node/454408 and http://drupal.org/node/760720

Files: 
CommentFileSizeAuthor
WYSIWYG Filtered HTML.png905.59 KBHyperGlide

Comments

Issue summary:View changes

Add code tag

Issue summary:View changes

Added code tags

Status:Active» Fixed

thank you for your bug report.
i wished most bug reporters did provide relevant information so thoroughly!

this is simple, in fact you just mixed something up:
"margin-left; margin-right; margin-top; float"
are all *style attributes*!

so
* tick the corresponding checkboxes at style-attributes
* and remove them from the element attributes

see it?
you owe me a beer ;-)

of course feel free to reopen if this does not solve your issue...!

Category:bug» support
Status:Fixed» Active

You are most welcome! -- Wish I could send you a case of beer as your support and this module is a big help to keep our site looking more uniform.

I did make the following changes to the advance box.

a[!href|target<_blank|title],
div[align<center?justify?left?right],
p[align<center?justify?left?right],
br,span,em,strong,cite,code,blockquote,ul,ol,li,dl,dt,dd,
img[!src|alt|title|style|width|height|class|typeof],
@[class|style|title]

For "* tick the corresponding checkboxes at style-attributes" I did not see any attributes below that were a direct match. Referring to under Box properties?

On loading the admin page the following errors appear at the top:

The class attribute is used in your HTML elements and attributes rules. You should specify the Rules for Class Names field in the "Advanced rules" section below. Leaving it unspecified will result in all class attributes filtered out.
The style attribute is used in your HTML elements and attributes rules, and you have enabled one of the following style properties: "background", "background-image", "list-style" or "list-style-image". You should specify the Rules for URLs used within inline styles field in the "Advanced rules" section below. Leaving it unspecified will result in all URLs used within inline styles filtered out.

I know this is all related, and is not a bug, so changed to support request.

Thanks!

Issue summary:View changes

code tags was wrong