I'm using fckeditor 2.6.4 with codeigniter 1.7.1 & I found this problem:
if I try to set_value to fckeditor it will appear with the tags...
example: I write 'hello' in fckeditor, I postthe value to my controller I got '<p>hello</p>' and if I send it back to the fckeditor it will show '<p>hello</p>'
but if I save the value(from example '<p>hello</p>') to mysql & reload it back to the fckeditor it will show 'hello' (without any tag)...
why is it happen?& how to remove those tags without change the output cause it is alright in my db?
thanks for the advice
Fri, 07/03/2009 - 05:42
#1
Re: tag problem
Have a look here http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options/HtmlEncodeOutput
It sounds as if that is what is going wrong.
If the data in your DB is saved as "<p>hello</p>", then there should be no problem displaying it back...
How exactly are you "sending" the value back to FCK? That might be where the problem is as well. Give us a code example and I can have a quick look, maybe help a bit better then.