How to read the news content edited with FCKeditor again into the editor?
How to read the news content edited with FCKeditor again into the editor?
I use the FCK editor when I publish the information, the content cannot be displayed to the editor when I modify it, I set the ofckeditor.value= ' content '
How to solve it? FCKeditor
------Solution--------------------
You can publish the news, you should put it in the database, read it.
------Solution--------------------
It should be that you gave FCKeditor an unsuccessful assignment.
------Solution--------------------
This post was last edited by xuzuning on 2013-02-28 11:57:36
Ofckeditor.value= ' content '???
Are you using JS to assign values?
There are several points to note:
1. Because the contents are enclosed in quotation marks, the single quotation marks appearing in the content are escaped.
2, because JS in the string is not allowed to appear newline characters, so to replace the content of the newline characters into \\n, that is, plus the continuation of the line character \
3, if there is textarea tag in the content, you need to do HTML tag escape