Hi,
I am trying to use the print htmlspecialchars in the $oFCKeditor->Value field and the html code from the html file does appear but not in the editor. It appears outside the editor. Does anyone have a solution for this problem? I have tried setting the print to a variable but that doesn't work too. Any help would be appreciated.
Thanks!
$fn = "$name/review.html";
$oFCKeditor = new FCKeditor('review') ;
$oFCKeditor->BasePath = '/review-editor3/' ;
$oFCKeditor->Value = print htmlspecialchars(implode('',file($fn))) ;
$oFCKeditor->Create() ;
Thu, 01/31/2008 - 18:20
#1
Re: fckeditor Value not working!
I have figured out the solution to my own problem. This may come in handy for people who want to edit the file directly using FckEditor.

Here is what I did:
Instead of this:
$oFCKeditor->Value = print htmlspecialchars(implode('',file($fn))) ;
Do this:
$oFCKeditor->Value = implode('',file($fn)) ;
That should do the trick.