Opened 18 years ago
Closed 18 years ago
#323 closed Bug (wontfix)
why is there so much extra added for inline styling?
Reported by: | gregsmith | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
OK,
This isn't so much a 'bug', but I didn't know where else to put it.
I've got the div tag in the 'protected tags' bit.
($oFCKeditor->ConfigProtectedTags? = '<div>|<?php>|<?>'; this is how I'm doing it - is this right??)
I've also set FormatSource to false.
However, when I paste in a div with inline styling, it adds in loads of extra stuff that ruins it and isn't what I want at all.
I paste in this:
<div style="padding:50px 15px; background:url(images/pic.jpg) no-repeat; width:215px; height:275px;">Whatever</div>
When I switch to and from source, I've suddenly got this:
<div style="padding: 50px 15px; background: transparent url(images/pic.jpg) no-repeat scroll 0% 50%; width: 215px; height: 275px; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Whatever</div>
Now, why would I want all those mozilla filters, and why would I want 'transparent' put into the background bit, stopping IE from showing the background image on the div? What's the point in that? Also the 'scroll 0% 50%' - why add unnecessary bloat to the code, especially when I have no control over whether it adds it in or not?
It's Gecko (the Firefox engine) the one that does generate all those extra styles. You can read more about the problem (and a workaround) here: https://sourceforge.net/tracker/index.php?func=detail&aid=1347762&group_id=75348&atid=543653
Closing as the previous one.