I am having issues with FCKEditor 2.2 and IE6. When I try to copy and paste content (even using HTML source), FireFox 1.5 does fine. However, using IE6, after saving or viewing source then back to WYSIWYG mode, it mangles the image.
Here is some sample text that gets mangled
-----
<p><font><center><img src="http://www.google.com/intl/en/images/logo.gif"></center></font></p>
some text here
-----
Before you save the text or go to source mode then back to WYSIWYG mode, it will appear fine with the image above the text. However, after it's saved or "cycled", the image displays under the text.
I know the HTML could be cleaner and better formed, but it's not wrong. And I don't think I can train users who use GUI HTML editors to write in cleaner code.
I've stripped the tags down as far as I can to reproduce the error. It works fine if you remove the <center></center> tags from around the image, but once they are placed back in, it breaks. It appears that it the center tag has to be inside <p> and <font> tags.
Does anyone have any idea of what could be causing this? Any fixes?
Thanks in advance,
Garrett
Mon, 03/06/2006 - 15:26
#1
RE: IE and FF generate different HTML source
RE: IE and FF generate different HTML source
Surprisingly, FCKEditor recovered from bad tables but chokes on something that shouldn't affect anything.
RE: IE and FF generate different HTML source
if we can't get them to do this, then we force past as plain text.
we don't even want them pasting in font tags as this overrides the css we have defined.
RE: IE and FF generate different HTML source
We use some customised tags on our site so editors can enter source code such as:
<customtag1>hello</customtag1>
<customtag2>good-bye</customtag2>
In Firefox, these tags display correctly when clicking on Source view.
In IE, it appears like this instead:
<customtag1></customtag1>hello
<customtag2></customtag2>good-bye
If you view the source in IE and save, it messes up all the source code and the way the text is supposed to be displayed.
Any solution for this?