Thursday, April 30, 2009

Steps for using FCK editor

FCK editor is a php code used for providing WYSIWYG editor facility in website developed using php.

a . Copy and paste the FCK editor folder (which holds the files related to the FCK editor) into your project folder.
b. Use the following code for including FCK editor.

include ("../FCKeditor/fckeditor.php");
$oFCKeditor = new FCKeditor("message") ;
$oFCKeditor->BasePath = '../FCKeditor/' ;
$oFCKeditor->Value ="";
$oFCKeditor->Create() ;

Here message is the name of the HTML element, you can give your own name as per your need. This name can be used as any other HTML element for getting the value from $_POST.

It seems FCKeditor is not working in Chrome.

More Articles...

No comments:

Search This Blog