FCKeditor installation (PHP)_PHP tutorial
1. Download the latest version of FCKEditor and unzip
2. Delete all files in the /FCKeditor/ directory except fckconfig.js, fckeditor.js, fckstyles.xml, fcktemplates.xml, and fckeditor.php
Delete the directories /editor/_source, _testcases (basically, all folders or files starting with _ are optional),
Delete all directories under /editor/filemanager/browser/default/connectors/ except the PHP directory
Delete all directories under /editor/filemanager/upload/ except the PHP directory
Delete all files under /editor/lang/ except en.js, zh.js, zh-cn.js
3.
Open/FCKeditor/fckconfig.js
Modify
var FCKConfig.DefaultLanguage = 'zh-cn' ;
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
To enable file upload, you also need to configure FCKeditoreditorfilemanageruploadphpconfig.php and FCKeditoreditorfilemanagerbrowserdefaultconnectorsphpconfig.php
(uploading Chinese name files will cause garbled characters)
4. Call the method
FCKeditor is placed in the website root directory
in the PHP file, including the /FCKeditor/fckeditor.php file
//contains the fckeditor class
include("../FCKeditor/fckeditor.php");
//Set the editor path
$sBasePath = "/FCKeditor/";
//Create a Fckeditor, the name of the form is ipaddr
$oFCKeditor = new FCKeditor('ipaddr');
$ oFCKeditor->BasePath = $sBasePath ;
//Set the form initial value
$oFCKeditor->Value = 'This is some sample text' ;
$oFCKeditor- >Create() ;
//You can also set
$oFCKeditor->Width
$oFCKeditor->Height
$oFCKeditor->ToolbarSet
5. Customization
a. Customize the calling path
Directly change the FCKeditor directory to editor/, and specify the root path as /editor/ when calling.
b. Customized style
You can customize the style by modifying the Skin in the editorskins directory, mainly modifying the CSS.
c. Customize the toolbar
In fckconfig.js, Default and Basic toolbars are customized by default. You can also customize your own toolbar according to the format and use $oFCKeditor-> in php. ToolbarSet=toolbarname calls
d. Customize fonts
Add in front of the FCKConfig.FontNames font list in fckconfig.js:
Song style; Hei style; Official script; Kai style_GB2312;
(Note Save as UTF8 format)
e. Close file upload
i. Change FCKConfig.LinkBrowser, FCKConfig.ImageBrowser, FCKConfig.FlashBrowser, FCKConfig.LinkUpload, FCKConfig.ImageUpload, FCKConfig.FlashUpload in fckconfig.js Set to false.
ii. Directly delete the PHP file in filemanager
iii. Customize toolbars
The most important point is that you need to change the PHP file under filemanager. Only authenticated users can access it.
f. Note: Please use an editor such as Editplus to edit the configuration file, and be sure to save the format as utf8.
Others:
The installation method of asp is basically similar, all php Just change it to asp.
Under the JSP platform, you need to delete everything under filemanager and replace it with Servlet. You need to modify several configurations in fckconfig.js (LinkBrowserURL, ImageBrowserURL, FlashBrowserURL, LinkUploadURL, FlashUploadURL, ImageUploadURL).

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Validator can be created by adding the following two lines in the controller.

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c
