First, introduction
On November 30, 2004, the FCKEDITOR 2.0 RC1 was launched, according to its official website: This is the first stable version of the FCKEDITOR version 2.0. Everyone can now consider formal use it. The currently supported background language has ASP, ASP.NET, PHP, and ColdFusion.
The author has been discovered after a simple trial, and the version 2.0 has a lot of improvements than version 1.6. The first is that FcKeditor's file structure is clearer, and it is more convenient to deploy it in its own system. Another version 2.0 finally supported the Firefox 1.0 browser, which will win more users for Fckeditor. Not much nonsense, let us learn how to install, configure Fckeditor 2.0.
Second, installation and examples
First of all
Http://sourceforge.net/projects/fckeditor/ Download Fckeditor 2.0 RC1 (554K) and unzip it into your website directory and change the folder name to fckeditor. For example, if your website is placed in this directory, create 3 subdirectories in this directory:
n fckeditor: Store Fckeditor downloaded from the website
n Upimages: Pictures used to store upload
n admin: store the test page inside
The structure of the website is as follows:
/ Fckeditor // fckeditor directory
/ Userfiles // upload file directory
/ admin
Test.php // Submit the data page
TestSubmit.php // Display data page
Go to the fckeditor directory, open the _samples directory, contain a variety of programming languages to call the sample programs page, where the php directory contains some examples of using PHP to call fckeditor, you can take a look, learn about the calling method of Fckeditord, Below is my Test.php program, put it in the admin directory under the root directory:
PHP
IF ($ _ post ["add"]) {
$ Content = $ _ post ['editordefault'];
Echo $ Content;
// Variable $ Content is the content we edited in Fckeditord, here you can save it to the database, code omitted.
}
?>
hEAD>