As mentioned in the previous article, we will not explain it again here.
1) copy an object
Decompress FCKeditor to your PHP website directory. The storage location is random. Here I am in the root directory by default
2) Call the FCKeditor. php class file
<? PHP
Include ("FCKeditor/FCKeditor. php"); // used to load FCKeditor files
?>
3) instantiate the control. You can put it in the position you want to display in the form to facilitate the value.
<? Php <br/> $ ofckeditor = new FCKeditor ('fckeditor1'); // create a FCKeditor instance <br/> $ ofckeditor-> basepath = '. /FCKeditor/'; // set the FCKeditor directory address <br/> $ FCKeditor-> width = '20140901 '; // set the display width <br/> $ FCKeditor-> Height = '300px '; // set the height of the display height <br/> $ ofckeditor-> Create (); // create an Editor <br/>?> <Br/>
4) value: directly obtain the value of the control through $ _ request [].
5) at this time, you may find that the upload and browsing functions of files and Images cannot be implemented. You need to configure
1. Open FCKeditor/Editor/filemanager/upload/PHP/config. php, find the code $ config ['enabled'], and set the value to true.
2. Set $ config ['userfilespath'] in the following lines and set the upload path.
3. Open the FCKeditor/fckconfig. js file, find code _ filebrowserlanguage, and set the value to PhP. In the next line, set the _ quickuploadlanguage value to PhP.