Hi All,
I'm using FCKEditor 2.6 (under IE6)
I've found some cases where I submit to web page some HTML content (entered by end users) and when they later save, the text gets mixed up. Parts near the top end up at the bottom. It's visibly incorrect when rendered.
Basically I have this:
I've tried getHTML and getXHTML, same results. The text is mixed up. See attached.
TIA
I'm using FCKEditor 2.6 (under IE6)
I've found some cases where I submit to web page some HTML content (entered by end users) and when they later save, the text gets mixed up. Parts near the top end up at the bottom. It's visibly incorrect when rendered.
Basically I have this:
<script type="text/javascript">
var sBasePath = "/fckeditor/";
var oFCKeditor = new FCKeditor( "editor","100%", "100%","$toolbar") ;
document.all.editor.value = urlDecode(document.all.editor.value);
// At this point the text looks OK.
alert("before convert \n " + document.all.editor.value);
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ReplaceTextarea();
</script>
// Then later in the window onLoad:
function doLoad() {
oEditor = FCKeditorAPI.GetInstance('editor');
// This displays with parts of the text re-ordered incorrectly.
setTimeout("alert(oEditor.GetData())", 1000);
}
I've tried getHTML and getXHTML, same results. The text is mixed up. See attached.
TIA
