How to install and configure fckeditor editor under PHP_PHP tutorial
WBOYOriginal
2016-07-21 15:31:59885browse
1. PHP calls the fckeditor method. 2. JS calls the fckeditor method.
Copy 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”; //The default editor toolbar includes Basic (basic tools) Default (all tools) Soft (images and videos can be inserted in one column) Renpeng ( You can upload pictures and videos 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 ("=" includes the part), which is not required: $oFCKeditor->Config['SkinPath'] = '. ./editor/skins/silver/'; // There are three skins for setting the editor skin default $oFCKeditor->Create(); // Just output the value of the variable $myeditor where you want to display the editor. ?>
FCKeditor js calling method one
Copy code The code is as follows:
FCKeditor js calling method two
Copy the code The code is as follows:
http://www.bkjia.com/PHPjc/322886.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322886.htmlTechArticle1. PHP calls the fckeditor method. 2. JS calls the fckeditor method. Copy the code The code is as follows: ?php require_once(PATH_PRE.”fckeditor.php”); // Contains the fckeditor class, $oFCKeditor =...
Statement:
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