FCK editor integration in RunCMS
include_once(XOOPS_ROOT_PATH.'/class/fckeditor/fckeditor.php');
$runFCKeditor = new FCKeditor('content');
$runFCKeditor->BasePath = XOOPS_URL."/class/fckeditor/";
//$runFCKeditor->create();
if ($runFCKeditor->IsCompatible() && $editorConfig["displayeditor"] == 1 && $editorConfig["displayforuser"] == 1 && $xoopsUser)
{
$runFCKeditor->EchoEditArea('content', $news->hometext);
//$runFCKeditor->create();
}
No comments:
Post a Comment