5
Hi, i'm using the fckeditor in my module. I just downloaded it form the official page
http://www.fckeditor.netAt first i copied the whole forlder called FCKeditor to my module path, rename it to fckeditor.
If you are on the admin side you have to:
$fckeditor_root = XOOPS_ROOT_PATH.'/modules/anymodule/admin/fckeditor/';
include XOOPS_ROOT_PATH.'/modules/content/admin/fckeditor/fckeditor.php';
ob_start();
$oFCKeditor = new FCKeditor('message') ;
$oFCKeditor->BasePath = $fckeditor_root;
$oFCKeditor->Value= $message ;
$oFCKeditor->Create() ;
$form->addElement(new XoopsFormLabel(_C_CONTENT, ob_get_contents()));
ob_end_clean();
And if you are on the user side and don't want to use the formthemeform just replace
"$form->addElement(new XoopsFormLabel(_C_CONTENT, ob_get_contents()));"
for
"$xoopsTpl->assign($label, ob_get_contents());"
if you are using templates.
Then you have to delete the files you don't need in the folder fckeditor. I recommend you visit the sample section in the official site to see how it works.
I hope it help you and sorry for my english.