1. PHP calls the fckeditor method.
2. JS calls the fckeditor method.
Copy the code The code is as follows:
require_once(PATH_PRE.”fckeditor.php”); // Contains the fckeditor class,
$oFCKeditor = new FCKeditor('content'); // Create a fckeditor object, the name of the form is content
$oFCKeditor->BasePath=”../fckeditor/”; //The directory where the editor is located
$oFCKeditor->ToolbarSet=”Yiyunnet”; //Default editor tool The columns include Basic (basic tools) Default (all tools) Soft (pictures and videos can be inserted into one column) Renpeng (pictures and videos can be uploaded into two columns) Full (three columns)
$oFCKeditor->Height='100%' ; //Height
$oFCKeditor->Width='100%'; //Width
$oFCKeditor->Value=""; //The initial value can also set the following parts ("=" including parts), which are not required :
$oFCKeditor->Config['SkinPath'] = '../editor/skins/silver/'; // There are three skins to set the editor skin default
$oFCKeditor->Create(); // In To display the editor, just output the value of the variable $myeditor
?>
Copy the code The code is as follows:
Copy the code The code is as follows:
The above introduces the method of installing and configuring fckeditor editor under ueditor php, including ueditor content. I hope it will be helpful to friends who are interested in PHP tutorials.