Last active
December 16, 2015 19:39
-
-
Save tsechingho/5486660 to your computer and use it in GitHub Desktop.
This is an example to set CSS font-family of Chinese for CKEditor 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CKEDITOR.editorConfig = (config) -> | |
config.font_names = | |
'楷體/Georgia, "標楷體", BiauKai, DFKai-SB, "华文楷体", stkaiti, "楷體", KaiTi, "楷体", SimKai, serif;' + | |
'明體/"Times New Roman", Times, "細明體", MingLiU, "新細明體", PMingLiU, serif;' + | |
'宋體/"Times New Roman", Times, "儷宋 Pro", "LiSong Pro", "細宋體", SimSun, "新宋體", "宋体", NSimSun, serif;' + | |
'黑體/Arial, Helvetica, "儷黑 Pro", "LiHei Pro", "微軟正黑體", "Microsoft JhengHei", "黑體", "黑体", SimHei, sans-serif;' + | |
CKEDITOR.config.font_names | |
true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment