My clients need to be able to insert pictures with margins and float attributes in text fields. Since this is not possible with Drupals default "Filtered HTML" filter I thought I could solve it easily with WYSIWYG Filter. Now I have spent two hours trying to make it work, but still it doesn't. When showing text content, all images has been filtered out from the HTML.

I have tried different options for configuring the img tag in "HTML Elements and attributes", but nothing seems to work.

Comments

What WYSIWYG editor are you working with? I haven't tried that version of WYSIWYG Filter but on the D6 version I had a similar problem with TinyMCE. I just wouldn't insert images at all. When I switched to CKeditor it worked fine.

I experienced the same with TinyMCE 3.4.8. A workaround is to allow id "__mce_tmp".
The TinyMCE 3.4.5 Changelog says "Fixed bug with image dialogs not inserting an image if id was omitted from valid_elements." I did not test though if there is a regression here or if it just never works with WYSIWYG Filter 7.x-1.6-rc2. If the latter is true then this issue becomes a bug rather than a support request.

Same issue here with CKEditor 3.6.2 and Drupal module CKEditor 7.x-1.6.
Btw: I don't think it's possibel to fill "__mce_tmp" into "Rules for Element IDs", because element IDs should start with an upper or lower case letter "a to z".

Problem solved for me. I was missing img[width|height|alt|title|src] in my whitelist.

#4 did not solved the problem for me, all img tags are filtered out.

Issue summary:View changes

sdsdf