FCKeditor2.5.1 settings and modifications (forPHP), attachment download

Source: Internet
Author: User
The latest FCKeditor version is 2.5.1. It takes me some time to modify some files, which is more suitable for practical applications. for details about the modification process, refer to the instructions. You can also download the modified program directly, as shown in the attachment. 1. delete the editor_source directory. This is the FCKeditor source code. You can delete it. delete the language except enzhzh-cn in the editorlang directory

The latest FCKeditor version is 2.5.1. It takes me some time to modify some files, which is more suitable for practical applications. for details about the modification process, refer to the instructions. You can also download the modified program directly, as shown in the attachment. 1. delete the editor/_ source directory. This is the FCKeditor source code. You can delete it. delete the language except en/zh-cn in the editor/lang directory




The latest FCKeditor version is 2.5.1. It takes me some time to modify some files, which is more suitable for practical applications. for details about the modification process, refer to the instructions. You can also download the modified program directly, as shown in the attachment.

1. Delete the editor/_ source directory
This is the source code of FCKeditor and can be deleted.

2. Delete the language files in the editor/lang directory except en/zh-cn.

3. Delete the directory of editor/filemanage/connectors except php

4. Modify fckconfig. js

Modify the default language. Note: This step can be ignored. FCKeditor will automatically match the browser's language.
Find

QUOTE:

FCKConfig. DefaultLanguage = 'en ';
To:

QUOTE:

FCKConfig. DefaultLanguage = 'zh-cn ';
Expanded font and added common Chinese Fonts
Find

QUOTE:

FCKConfig. FontNames = 'arial; Comic Sans MS; Courier New; Tahoma; Times New Roman; Verdana ';
To:

QUOTE:

FCKConfig. FontNames = '; _ GB2312; Arial; Comic Sans MS; Courier New; Tahoma; Times New Roman; Verdana ';
Modify the font size. The font size in FCKeditor is represented by "smaller; larger; xx-small;" and other names. It is not intuitive enough. We will change it to a number + px format.
Find

QUOTE:

FCKConfig. FontSizes = 'smaller; larger; xx-small; x-small; medium; large; x-large; xx-large ';
Change

QUOTE:

FCKConfig. FontSizes = '9px; 10px; 11px; 12px; 13px; 14px; 16px; 18px; 24px; 36px ';
5. Modify editor/filemanage/connectors/php/config. php
FCKeditor disables File Upload by default. To open the file, you must modify the file.
Find

QUOTE:

$ Config ['enabled'] = false;
Change

QUOTE:

$ Config ['enabled'] = true;
6. Modify editor/filemanage/connectors/php/io. php
FCKeditor does not rename the file name during file uploading, which affects the file named after the Chinese name.
Find

Change


7. Some prompts of FCKeditor when uploading files are in English. For ease of use, you can customize these prompts. If you do not need them, skip this step.
Modify the following files:
Editor/filemanage/connectors/php/commands. php
Editor/filemanage/connectors/php/connector. php
Editor/filemanage/connectors/php/upload. php
Editor/dialog/fck_flash/fck_flash.js
Editor/dialog/fck_image/fck_image.js
Editor/dialog/fck_link/fck_link.js

Fckeditor.part2.rar
(11:50:41, Size: 160 kB, Downloads: 0)


Fckeditor.part1.rar
(11:50:41, Size: 250 kB, Downloads: 0)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.