Home >Backend Development >PHP Tutorial >PHP calls ckeditor? How to call ckeditor_PHP tutorial
How to call ckeditor? Let me summarize for you how to use php to call ckeditor editor and js to call ckeditor. The other script calling methods are roughly the same.
PHP calls FCKeditor
Place FCKeditor in the root directory of the website
In the PHP file, include the /FCKeditor/ckeditor/" target="_blank">fckeditor.php file
Insert the following code into the web page where the editor needs to be placed to call it:
The code is as follows
|
Copy code
//Create a FCKeditor with the form name jzleditor
$oFCKeditor = new FCKeditor("jzleditor");
//Set editor path
$oFCKeditor->ToolbarSet = "Default";//Tool Button
$oFCKeditor->Height="550px"; //Set its height
?>
Enter the content and after submission, obtain the input content through $_POST["jzleditor"] in the processed file
The use of CKEDITOR is very simple. First download CKEDITOR 3.6.1 (the default is the PHP version), and then write the following two paragraphs of js in the head of the calling page:
Note: The content here is the name of |