(New page: It is very easy to use FCKeditor in your php web pages. Just follow these steps. == Integration step by step == === Step 1 === The first thing to do is to include the "PHP Integration M...) |
(No difference)
|
Revision as of 10:45, 8 January 2008
It is very easy to use FCKeditor in your php web pages. Just follow these steps.
Integration step by step
Step 1
The first thing to do is to include the "PHP Integration Module" file in the top of your page as in the example below:
<?php include("fckeditor/fckeditor.php") ; ?>
Of course the include path refers to the place where you have installed your FCKeditor.
Step 2
Now the FCKeditor is available and ready to use. So, just insert the following code in your page to create an instance of the editor inside a <FORM>:
<?php $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = '/fckeditor/' ; $oFCKeditor->Value = '<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p>' ; $oFCKeditor->Create() ; ?>
"FCKeditor1" is the name used to post the editor data on forms.