FCKEditor Chinese font addition and Chinese font is not valid solution

Source: Internet
Author: User

By default, FCKeditor cannot use the Chinese font when making text edits.

Groping for myself, the solution is as follows:

Open Fckconfig.js File
Locate the following line:
Fckconfig.fontnames = ' Arial; Comic Sans MS; Courier New; Tahoma; Times New Roman; Verdana ';
Modify it to:
Fckconfig.fontnames = ' XXFarEastFont-arial bold; XXFarEastFont-Arial _gb2312; imitation _gb2312; Arial; Comic Sans MS; Courier New; Tahoma; Times New Roman; Verdana ';

When, this is still not, although found that the editor's font options have been added to the Chinese font, but applied to the text but found no effect!
Next step:)

Open EDITOR/CSS Tutorial/fck_editorarea.css file

Will:
Font-family:arial, Verdana, Sans-serif;
Modified to:
font-family: XXFarEastFont-Arial, blackbody, XXFarEastFont-Arial, italics, imitation, Verdana, Sans-serif;

Save, refresh will be able to use the Chinese font.


Solution with invalid Chinese font

Find the FCK version of the configuration file should be/config.js, the same way, the code add location does not matter, to ensure that your grammar is OK, refresh,

Config.font_names = ' Arial/xxfareastfont-Arial/blackbody; imitation/imitation _gb2312; italics/italics _gb2312; XXFarEastFont-Arial/XXFarEastFont-Franklin, Microsoft Jache/Microsoft James Black; + Config.font_names;

This is the KO.


Footnote:

Fckconfig.defaultlanguage = ' ZH-CN ';
First disable automatic language detection, and then the default language from en modified to ZH-CN, pay attention not to change into Zh,zh is traditional, ZH-CN is simplified, in this despise fckeditor the cart before the horse

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.