Tinymce变成支持中文字体就可以了。
将richfaces的jar解压缩后搜索tinymce,终于找到
richfaces-ui-3.3.3.Final.jar\org\richfaces\renderkit\html\scripts\tiny_mce\advanced文件夹下有
editor_template.js和editor_template_src.js两个文件,将其中的theme_advanced_fonts : "Andale Mono=andale mono,times;修改成theme_advanced_fonts : "\u5b8b\u4f53=\u5b8b\u4f53;\u6977\u4f53=\u6977\u4f53\u005f\u0067\u0062\u0032\u0033\u0031\u0032;Andale Mono=andale mono,times;
这里注意,我们将汉字编程unicode字符串。
editor_template.js和editor_template_src.js两个文件,将其中的theme_advanced_fonts : "Andale Mono=andale mono,times;修改成theme_advanced_fonts : "\u5b8b\u4f53=\u5b8b\u4f53;\u6977\u4f53=\u6977\u4f53\u005f\u0067\u0062\u0032\u0033\u0031\u0032;Andale Mono=andale mono,times;
这里注意,我们将汉字编程unicode字符串。