I want to use the editor with PHP. In principle it's working - but after refetching the content from the DB the content is displayed as HTML in the editor and not as formatted text.
$oFCKeditor = new FCKeditor('body') ;
$oFCKeditor->BasePath = '/democms/FCKeditor/';
$oFCKeditor->Value = $row[5];
$oFCKeditor->Height = '300';
$oFCKeditor->Create();
In the sample file 8, there is a command SetHTML for Javascript. How to do this with PHP?
$oFCKeditor = new FCKeditor('body') ;
$oFCKeditor->BasePath = '/democms/FCKeditor/';
$oFCKeditor->Value = $row[5];
$oFCKeditor->Height = '300';
$oFCKeditor->Create();
In the sample file 8, there is a command SetHTML for Javascript. How to do this with PHP?
RE: SetHTML with PHP?
RE: SetHTML with PHP?
Not sure if you have the same problem.
I had a similar issue using PHP. After saving my formatted text and fetching it from the database, it would display as HTML code rather than formatted text within the editor.
I had entered some green 'Under Construction' text that would re-display as '<font color="#00ff00">Under Construction</font>' within the editor window and the source code would show as '<font color="#00ff00">Under Construction</font>'.
I just wanted the green text to redisplay. To fix the problem, I removed the function- htmlspecialchars() from my php script. I was using this function to process the form variable prior to saving it in the database.
Maybe this will help.