TinyMCE的默认字体大小 [英] TinyMCE default font size
问题描述
如何设置tinyMCE的默认字体大小,我有一个tinyMCE编辑器,我尝试了所有将文本大小更改为14px的东西,并始终显示10px。我正在使用rails 3.1和tinymce
主要版本:'3'和次要版本:'4.4'。
I将tinymce / themes / advanced / skin / default / content.css font-size改为14px
我甚至添加了
tinyMCE.init({
theme_advanced_font_sizes:10px,12px,13px,14px,16px,18px,20px,
font_size_style_values:12px,13px,14px,16px,18px,20px,
});
和
body,td,pre {color:#000; font-family:Verdana,Arial,Helvetica,sans-serif;
font-size:14px; margin:8px; }
您需要清空浏览器的缓存。有时你必须这样做,以确保TinyMCE不使用旧文件。
正如@Jona和@Nikola所说的,请确保你引用了一个新的CSS文件]。
How can I set the default font size of tinyMCE , I've a tinyMCE editor and I tried all the things to change the text-size to 14px and it always shows 10px. I'm using rails 3.1 and tinymce major Version: '3', and minor Version: '4.4'.
I changed tinymce/themes/advanced/skins/default/content.css font-size to 14px I even add
tinyMCE.init({
theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px",
font_size_style_values: "12px,13px,14px,16px,18px,20px",
});
and
body, td, pre { color: #000; font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px; margin: 8px; }
You need to empty you browser's cache. Sometimes you have to do that to ensure TinyMCE is not using an older file.
[As @Jona and @Nikola said, please make sure you are referencing a new CSS flle].
这篇关于TinyMCE的默认字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!