Home > Backend Development > PHP Tutorial > How to install and configure fckeditor editor under ueditor php

How to install and configure fckeditor editor under ueditor php

WBOY
Release: 2016-07-29 08:44:28
Original
1048 people have browsed it

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
?>


FCKeditor js calling method 1

Copy the code The code is as follows:





FCKeditor js calling method 2

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template