So, I've been using FCKEditor in my CMS solution for awhile now, but I reworked the code and now FCKEditor just doesn't work correctly. I'm using it with PHP, and instead of creating the whole editor, it just creates a normal TEXTAREA. Here is a snippet of the code:
the code is inside a function, which is called by a page that is included by index.php. I believe it has something to do with that, because when I call the page that is included directly, the editor works fine... I just can't seem to pinpoint what is causing the break.
Any advice on this?
<tr><td class="right">Content:</td><td> <? $oFCKeditor = new FCKeditor('main') ; $oFCKeditor->BasePath = '../fckeditor/'; $oFCKeditor->Value = stripslashes($content); $oFCKeditor->Width = '450' ; $oFCKeditor->Height = '300' ; $oFCKeditor->Create() ; ?> </td></tr>
the code is inside a function, which is called by a page that is included by index.php. I believe it has something to do with that, because when I call the page that is included directly, the editor works fine... I just can't seem to pinpoint what is causing the break.
Any advice on this?