Some times on slow clients i have the problem, that FCK-editors are losing their data on submit. That means, the user is editing text in FCK and after submit, the corresponding field is set to "NULL", instead of the typed text.
Is this a known issue? How can i prevent this behavior? The text are submitted ALWAYS if i do not use FCK and type in plaintext...
Is this a known issue? How can i prevent this behavior? The text are submitted ALWAYS if i do not use FCK and type in plaintext...
Re: losing data on submit...
Re: losing data on submit...
Re: losing data on submit...
Hello, this is my first post here
I am having this problem as well.
I use FCK editor quite succesfully as a tool in my CMS to update a website. But sometimes when I copy text from another web page and paste into the FCK editor, it shows normaly inside the editor. When I want to submit that text to the database, nothing is submitted. Then I tried to copy and paste part by part of text. Half way through it was ok. Then I came across one paragraph which looked just as any other but when I looked at the generated code, my "copy" function picked some tags as well (<class = "...">). Whenever this happens, the text is not submitted. So every time I use "copy" and "paste" I have to check the HTML code picked by the "copy" and correct it manually. Is there any solution for this?
Emir
Re: losing data on submit...
Hi people I think I found the exact problem after 10 days
If you want to submit the Apostrophe sign ( ' ), FCK editor will not send any data. The $_POST variable after submit will be empty. If you have two of them ( ' ' ) this will work. Any odd number of these will not work. I guess that has something to do with the SQL injection prevent. When I looked in the FCK generated HTML code, the editor didn't convert this sign into a HTML special character but it does with others. The special character for apostrophe is ('). Even when I type this special character code directly in the FCK editor (source button), editor will not save the code for the special character, it will turn it back to a normal apostrophe. There might be other characters that the editor can't deal with but for now I only found this and it's a big relief as now I can update my website without spending days of thinking what's going on.
I hope this helps.
Re: losing data on submit...
I am not able to replicate the error on my PC, so it's a frustrating exercise.
Any help would be much appreciated.
Re: losing data on submit...
Re: losing data on submit...
can anyone tell me how to solve this problem
Re: losing data on submit...
'
to represent a single apostrophe, not the apostrophe character itself.
Modern browsers will display it as an apostrophe on the page.
Dennis
Re: losing data on submit...
I am saving large amout of data at a time that will need editing from time to time. Even if i use ': instead of an apostrophe to submit my data to the database when i try to edit the saved data with fckeditor it reads the ' as an apostrophe and you cannot save it again.
I found this encoding in a file named fckeditor.js
many other files also have replace clauses i'll try to edit them to include apostrophe and get back to you guys if you have any suggestion, will appreciate it
FCKeditor.prototype._HTMLEncode = function( text )
{
if ( typeof( text ) != "string" )
text = text.toString() ;
text = text.replace(
/&/g, "&").replace(
/"/g, """).replace(
/</g, "<").replace(
/>/g, ">") ;
return text ;
}