所以我正在使用 TinyMCE,我想允许用户将字体大小更改为一个预定义的大小(更大)。
我已经设法通过这个自定义设置做到了这一点:
font_size_style_values: "large,x-small,small,medium,large,x-large,xx-large",
theme_advanced_font_sizes: "1",
但是,在字体大小选择下拉列表中,出现的文字是“1(8pt)”,对用户不是很友好。
我想把它改成“大”,或者任何东西。有任何想法吗?
如果有帮助,这是我的完整自定义设置:
tinyMCE.init({
mode: "exact",
elements: "Details", // "EventDetails_Directions, EventDetails_Details"
width: "673",
height: "320",
theme: "advanced",
plugins: "paste, media",
autocomplete: "off",
convert_fonts_to_spans : true,
theme_advanced_buttons1: "bold,italic,underline,justifyleft,justifycenter,fontsizeselect,link,unlink,image,bullist,separator,undo,redo,code",
theme_advanced_buttons2: "",
theme_advanced_buttons3: "",
font_size_style_values: "large,x-small,small,medium,large,x-large,xx-large",
theme_advanced_font_sizes: "1",
paste_auto_cleanup_on_paste: true,
paste_remove_styles: true,
paste_retain_style_properties: "none",
paste_strip_class_attributes: "all",
paste_preprocess: function(p1, o) {
o.content = replaceWordChars(o.content);
},
content_css: "/ClientControlRoom/assets/css/tinymce_custom.css"
});