All instances of "float:value" in my Drupal site strip off upon saving. I encountered this with TinyMCE module before and I thought this was TinyMCE exclusive. To my horror I just discovered that all instances of float property strips off (in blocks and content with full html/php) upon saving it.

I think it has something to do with the filter or is it? Can anyone please tell me what's going on here and how to resolve this? Thanks.

An example:
Here's what I have upon creating the block/body content (with full html/php)...
<img src="image_here.gif" style="padding:10px" style="float: left" width="10" height="10" >';

And here's what I have after saving it...
<img src="image_here.gif" style="padding:10px" width="10" height="10" >';
Where'd float go?

This also applies to text...

Comments

halloffame’s picture

Hello anyone?

BassistJimmyJam’s picture

I have looked into this and I believe it is a problem with your syntax, not the filter. Your image tag has two different style attributes, so the second one is ignored. Your image tag should look more like this:

<img src="image_here.gif" style="padding: 10px; float: left;" width="10" height="10" />

You may also want to consider moving the height and width into the style attribute. I'm not 100% sure, but I believe that the height and width attributes are in ems. For example:

<img src="image_here.gif" style="padding: 10px; float: left; width: 10em; height 10em;" />

Please verify that this resolves your issue.

BassistJimmyJam’s picture

Status: Active » Closed (fixed)

No reply in 2+ weeks, closing.