CKEditor Editor Custom Chinese font and Chinese font size

Source: Internet
Author: User

The following two lines are found in the Fckconfig.js:

The code is as follows Copy Code

Fckconfig.fontnames = ' Arial; Comic Sans MS; Courier New; Tahoma; Times New Roman; Verdana ';
fckconfig.fontsizes = ' Smaller;larger;xx-small;x-small;small;medium;large;x-large;xx-large ';

Annotate it and add the following code (font size Select one of the ways you can):

The code is as follows Copy Code
Chinese font:
fckconfig.fontnames = ' Microsoft Ya hei; xxfareastfont-Arial, XXFarEastFont-Arial, Arial, XXFarEastFont-_gb2312, imitation _gb2312, founder-Shu, founder Yau, XXFarEastFont-Arial, XXFarEastFont-Arial, Xingkai; Arial; Comic Sans MS; Courier New; Tahoma; Times New Roman; Verdana ';
Select by text pixel size:
fckconfig.fontsizes = ' 9px;10px;12px;14px;16px;18px;20px;22px;24px;36px ';
Select by Chinese font size (per pixel unit conversion):
fckconfig.fontsizes = ' 56px/, 48px/, 34px/, 32px/, 29px/, 24px/No. third, 21px/Small, 20px/fourth, 18px/-IV; 16px/-fifth; 12px/10px/Sixth, 8px/small Six ';
Select by Chinese font size (per pound unit conversion):
fckconfig.fontsizes = ' 42pt/, 36pt/, 26pt/, 24pt/, 22pt/Second, 18pt/, 16pt/Third, 15pt/Small, 14pt/fourth, 12pt/-IV; 10.5pt/Fifth 9pt/7.5pt/Sixth, 6.5pt/small Six ';

If you increase the Chinese invalid by the above method, you can try the following actions

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,

The code is as follows Copy Code

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:

  code is as follows copy code

Fckconfig.defau Ltlanguage = ' ZH-CN ';

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.