1. Download the new and most recent version of FCKEditor to decompress
2. Delete all files except five files in the /FCKeditor/ directory
Delete the directory /editor/_source,_testcases (basically, all folders or files starting with _ are optional),
Delete all directories except PHP directories under /editor/filemanager/browser/default/connectors/
Delete all directories except PHP directories under /editor/filemanager/upload/
Delete all files except , , under /editor/lang/
3.
Open /FCKeditor/
Revise
var = 'zh-cn' ;
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
To enable file upload, you also need to configure FCKeditor\editor\filemanager\upload\php\ and FCKeditor\editor\filemanager\browser\default\connectors\php\
(Uploading Chinese name files will cause garbled code)
4. Calling methods
Put FCKeditor in the website root directory
In PHP file, include /FCKeditor/ file
//Includes fckeditor class
include("../FCKeditor/") ;
//Set the editor path
$sBasePath = "/FCKeditor/";
//Create a Fckeditor with the name of the form ipaddr
$oFCKeditor = new FCKeditor('ipaddr') ;
$oFCKeditor->BasePath = $sBasePath ;
//Set the initial value of the form
$oFCKeditor->Value = 'This is some <strong>sample text</strong>' ;
$oFCKeditor->Create() ;
//It can also be set
$oFCKeditor->Width
$oFCKeditor->Height
$oFCKeditor->ToolbarSet
5. Customization
a. Custom call path
Change the FCKeditor directory directly to editor/, and specify the root path as /editor/ when calling.
b. Custom style
You can customize the style by modifying the Skin in the editor\skins directory, mainly modifying the CSS.
c. Custom toolbar
In the default, the two tools bars are customized. You can also customize your own toolbar according to the format, and use $oFCKeditor->ToolbarSet=toolbarname call in php
d. Custom font
Precede the font list inside:
Song font; bold font; official script; regular font_GB2312;
(Note that it is saved in UTF8 format)
e. Close file upload
i. Set the inside,,,, to false.
ii. Directly delete the php file in filemanager
iii. Custom toolbars
The most important point is that you need to change the php file under filemanager, which can only be accessed by authenticated users.
f. Note: Please use an editor such as Editplus to edit the configuration file, and note that the save format is utf8.
other:
The installation method of asp is basically similar, just replace all php with asp.
Under the JSP platform, you need to delete all the files under the filemanager and replace them with Servlet. You need to modify several configurations (LinkBrowserURL, ImageBrowserURL, FlashBrowserURL, LinkUploadURL, FlashUploadURL, ImageUploadURL).
2. Delete all files except five files in the /FCKeditor/ directory
Delete the directory /editor/_source,_testcases (basically, all folders or files starting with _ are optional),
Delete all directories except PHP directories under /editor/filemanager/browser/default/connectors/
Delete all directories except PHP directories under /editor/filemanager/upload/
Delete all files except , , under /editor/lang/
3.
Open /FCKeditor/
Revise
var = 'zh-cn' ;
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
To enable file upload, you also need to configure FCKeditor\editor\filemanager\upload\php\ and FCKeditor\editor\filemanager\browser\default\connectors\php\
(Uploading Chinese name files will cause garbled code)
4. Calling methods
Put FCKeditor in the website root directory
In PHP file, include /FCKeditor/ file
//Includes fckeditor class
include("../FCKeditor/") ;
//Set the editor path
$sBasePath = "/FCKeditor/";
//Create a Fckeditor with the name of the form ipaddr
$oFCKeditor = new FCKeditor('ipaddr') ;
$oFCKeditor->BasePath = $sBasePath ;
//Set the initial value of the form
$oFCKeditor->Value = 'This is some <strong>sample text</strong>' ;
$oFCKeditor->Create() ;
//It can also be set
$oFCKeditor->Width
$oFCKeditor->Height
$oFCKeditor->ToolbarSet
5. Customization
a. Custom call path
Change the FCKeditor directory directly to editor/, and specify the root path as /editor/ when calling.
b. Custom style
You can customize the style by modifying the Skin in the editor\skins directory, mainly modifying the CSS.
c. Custom toolbar
In the default, the two tools bars are customized. You can also customize your own toolbar according to the format, and use $oFCKeditor->ToolbarSet=toolbarname call in php
d. Custom font
Precede the font list inside:
Song font; bold font; official script; regular font_GB2312;
(Note that it is saved in UTF8 format)
e. Close file upload
i. Set the inside,,,, to false.
ii. Directly delete the php file in filemanager
iii. Custom toolbars
The most important point is that you need to change the php file under filemanager, which can only be accessed by authenticated users.
f. Note: Please use an editor such as Editplus to edit the configuration file, and note that the save format is utf8.
other:
The installation method of asp is basically similar, just replace all php with asp.
Under the JSP platform, you need to delete all the files under the filemanager and replace them with Servlet. You need to modify several configurations (LinkBrowserURL, ImageBrowserURL, FlashBrowserURL, LinkUploadURL, FlashUploadURL, ImageUploadURL).