FCKeditor Official website: http://ckeditor.com/
FCKeditor Download: http://ckeditor.com/download
Click to go to my csdn download
In the use of PHP to develop a message board, CMS, blogs are involved in the processing of text information, how the information is beautifully displayed in front of the reader is the PHP site developers to pursue, and the online editor to achieve the visual function, the earliest PHP developers are using UBB to achieve the display of text information function, Then came the online editor similar to Word, today and we introduced the old online editor fckeditor in the PHP environment to install the configuration and usage instructions.
FCKeditor supports a variety of development languages, such as PHP,. NET, Java, and so on, this article uses the Fckeditor2.6.6 version, mainly describes Fckeditor2.6.6 in the PHP environment how to install the configuration and use instructions.
Preparatory work
First we need to download the FCKeditor installation source package, please click to download fckeditor, recommended download Fckeditor2.6.6, according to the system environment you can download ZIP package or tar.gz package.
FCKeditor Installation Instructions
FCKeditor installation is very convenient, as long as the download Fckeditor2.6.6.zip package, will extract the Fckeditor2.6.6 folder under the FCKeditor folder copied to the corresponding project folder can be.
The following figure, default:
FCKeditor Use method description
index.php
<?php require_once ' editor/fckeditor.php '; ?> <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
Description: Default FCKeditor provides two modes of toolbars, that is, default and Basic,default provide all the FCKeditor toolbar features, Basic provides the most basic FCKeditor toolbar features, In short, default is primarily for the backend administrators, and basic is primarily for the foreground user, as long as the FCKeditor class is used to configure
<?php
$FCKeditor->toolbarset = ' Basic ';
? >
If you're not satisfied with the two toolbars provided by FCKeditor, you can define your own toolbars based on your needs, and you can use the second way, That is, modify the Fckeditor.js file to implement, open the Fckeditor.js, find the fckconfig.toolbarsets, you can modify and add the default and basic mode defined in the toolbar features, and even you can create a new toolbar, such as LEAPSOULCN work With columns, adding in fckeditor.js files
fckconfig.toolbarsets["LEAPSOULCN"] = [
<span> </span>[' Bold ', ' Italic ', '-', ' orderedlist ', ' Unorderedlist ', '-', ' Link ', ' Unlink ']
];
Then, when using the FCKeditor class, define