Hi guys,
I'm having the following problem with FCKeditor.
I'm using it for a news management script where you can enter news for a website in a lot of languages.
The problem is that sometimes I suddenly see that my translations have been replaced by '<p>null</p>'.
I think the problem could be related to the fact that sometimes I edit the news, change some combobox for a parameter and the press the save button before all of the FCKeditor-editors have been loaded.
Is it posible FCK-editor then posts a textual null value (perhaps from javascript) and this is saved to my database?
I'm going nuts over this problem, and I'm having a hard time simulating it. It mostly occurs while using a vista PC with the latest Internet Explorer.
Any help would be greatly appreciated.
I'm having the following problem with FCKeditor.
I'm using it for a news management script where you can enter news for a website in a lot of languages.
The problem is that sometimes I suddenly see that my translations have been replaced by '<p>null</p>'.
I think the problem could be related to the fact that sometimes I edit the news, change some combobox for a parameter and the press the save button before all of the FCKeditor-editors have been loaded.
Is it posible FCK-editor then posts a textual null value (perhaps from javascript) and this is saved to my database?
I'm going nuts over this problem, and I'm having a hard time simulating it. It mostly occurs while using a vista PC with the latest Internet Explorer.
Any help would be greatly appreciated.
Re: Database saves textual 'null' after editing with FCKeditor
Re: Database saves textual 'null' after editing with FCKeditor
If you need a quick solution, I would simply check before saving data to the database if it is eqal to "null".
If it contains "null", not a real message, simply skip that value when updating a record or throw an error.
There is very small probability that you would like to add news that contain this one simple word "null", so it should work.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Database saves textual 'null' after editing with FCKeditor
I already made such a check in one specific place in one module, but it would be a lot of work to do this for every module.
In specific it's weird that this issue occurs because we haven't experienced in the past and on the other systems (mostly Linux with firefox) we are using here at the office.
Re: Database saves textual 'null' after editing with FCKeditor
Re: Database saves textual 'null' after editing with FCKeditor
What method of launching FCKeditor do you use (ReplaceTextarea in javascript or do you create a FCKeditor class instance in server-side language php/asp/cfm..)?
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Database saves textual 'null' after editing with FCKeditor
Can anyone update this thread ?
- was a fix released in fckeditor itself?
- is there a way to prevent this at the instance creation level? (cfr "What method of launching FCKeditor do you use")
I'm running into same issues at a customer's and we can't reproduce the problem here.
(looks like they use Windows XP along with IE6)
Thank you!
Re: Database saves textual 'null' after editing with FCKeditor
I also find out that the problem does not appear if I wait until everything has been initialized.
Re: Database saves textual 'null' after editing with FCKeditor
I created another thread which describe this problem. I found that it causes custom CSS file with @import function in it. When I removed @import function everything was fine...
See: viewtopic.php?f=6&t=9345
Re: Database saves textual 'null' after editing with FCKeditor
Hi,
I seem to have te same problem. I do not have any @import rules in my CSS, so that solution won't help me (appearantly that bug is already known: http://dev.fckeditor.net/ticket/2135).
I use php4, and the following code to construct the editor:
Re: Database saves textual 'null' after editing with FCKeditor
However,.. the problem doesn't seem to be solved yet.
Re: Database saves textual 'null' after editing with FCKeditor
I am not able to replicate the error on my PC, so it's a frustrating exercise.
We are using version 2.6.3 with IE6/WinXP.
Any help would be much appreciated.