Php calls ckeditor? How to call ckeditor. How can we call ckeditor? the following small series will summarize the methods for calling ckeditor by using php and calling ckeditor by js. the methods for calling other scripts are roughly the same. How does PHP call ckeditor? the following small series will summarize the methods for calling ckeditor by using php and calling ckeditor by js. the methods for calling other scripts are roughly the same.
PHP calls FCKeditor
Put FCKeditor in the website root directory
The PHP file contains the/FCKeditor/ckeditor/"target =" _ blank "> fckeditor. php file.
Insert the following code where the editor needs to be placed on the webpage to call it:
| The code is as follows: |
|
// Contains the fckeditor class
Include ("fckeditor/fckeditor. php ");
// Create a FCKeditor with the form name jzleditor
$ OFCKeditor = new FCKeditor ("jzleditor ");
// Set the editor path
$ OFCKeditor-> BasePath = "fckeditor /";
$ OFCKeditor-> ToolbarSet = "Default"; // tool button
$ OFCKeditor-> Value = $ cont; //; set the initial content
$ OFCKeditor-> Width = "100%"; // set its Width.
$ OFCKeditor-> Height = "550px"; // set its Height
$ OFCKeditor-> Create ();
?> |
Input content. after submission, the input content is obtained through $ _ POST ["jzleditor"] in the processed file.
Js calls FCKeditor
CKEDITOR is easy to use. first download CKEDITOR 3.6.1 (PHP version by default), and then write the following two sections of js in the head of the call page: