21
Saganxis
Problems with FCKeditor
  • 2006/9/25 20:08

  • Saganxis

  • Just popping in

  • Posts: 25

  • Since: 2006/7/20


Hi, i was just trying to implementate the FCKeditor on my module, but i have na error that seems to be very stupid but i don't understand it.
When i load the page and display the editor then i click on it just to start typing and the cursor appear as always. Well i can't start TYPING, i don't know why, but when i lost the focus and return back to the page it seems to work fine....
If anybody knows please help me. Thank you.



22
Saganxis
Including the FCKeditor in owers modules
  • 2006/9/25 19:57

  • Saganxis

  • Just popping in

  • Posts: 25

  • Since: 2006/7/20


Hi, i'm using the fckeditor in my module. I just downloaded it form the official page www.fckeditor.net
At 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.



23
Saganxis
Re: formulaire problem
  • 2006/9/25 17:55

  • Saganxis

  • Just popping in

  • Posts: 25

  • Since: 2006/7/20


Hi, did you to set the return url when you create the form??and set the permission properly?




TopTop
« 1 2 (3)



Login

Who's Online

229 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits