Not sure why, but no matter what, every instance of FCKeditor starts off with a which you can not get rid of even if you delete all content and code inside of it. Any ideas?
Sat, 09/27/2008 - 02:15
#1
Re:   put at the beginning of everything
I have the same problem, but I think it just affects Google Chrome. It doesn't seem to affect IE or FireFox.
Did you manage to find a fix? I couldn't find anyone else who fixed it.
Thanks
Re:   put at the beginning of everything
Re:   put at the beginning of everything
FCKConfig.FillEmptyBlocks = false;
this will solve problem.
Re:   put at the beginning of everything
Re:   put at the beginning of everything
I realize this is not a direct answer but this is the idea on how to resolve. I get the issues as well so I understand. Or better yet - useless <span> withno attributes - in my contents. ugh..
C in Sunny SD - can you believe it is 70+F today - this is crazy weather.
Re: &nbsp; put at the beginning of everything
Yes. I have the same problem with Chrome. Firefox 2 works fine, and IE 7(I change to FCKConfig.FillEmptyBlocks = false
Re: &nbsp; put at the beginning of everything
This fixed it on Firefox 3.5.7, but the problem remains on Safari (4.0.4) and Chrome - I'm guessing any webkit browser??
This is such a painful issue, as you don't even need to focus on the editor, as soon as the page load its adds in these characters - so if the editor is part of a larger form (and isn't it always?) and you open the form to edit some other attribute you unwittingly stuff up the editor content.
Re: &nbsp; put at the beginning of everything
Hi,
By hooking into the OnComplete method you can check the value and do something about it. Note that if you set the value to empty quotes it STILL puts in the (e.g. editor.SetHTML( '' ) ). This appears to do the trick for me.
Note that I'm using jQuery for this method. I haven't tested this very well but initially on Chrome it appears to do the trick.
I've edited this to include a fix for a problem which appears to affect IE9 which leaves a single "<br />" in the editor when the input is an empty string. Use at your own risk.
Re: &nbsp; put at the beginning of everything