TinyMCE 字体大小菜单
TinyMCE Font Size Menu
出于某种原因,我无法在 TinyMCE 中显示字体菜单。这是我的代码:
$("#page_text_mce").tinymce({
script_url : '/admin/public/js/tinymce/tinymce.min.js',
plugins: [
"advlist autolink link image lists charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking",
"table contextmenu directionality emoticons paste textcolor responsivefilemanager"
],
toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect fontselect | fontsize",
toolbar2: "| responsivefilemanager | link unlink anchor | image media | forecolor backcolor | print preview code ",
image_advtab: true ,
external_filemanager_path:"/admin/filemanager/",
filemanager_title:"Responsive Filemanager" ,
external_plugins: { "filemanager" : "/admin/filemanager/plugin.min.js"},
height: 330,
width: 1050
});
我不确定我做错了什么。
toolbar1
的字体大小 属性 值错误,应该是 fontsizeselect
。不是 fontsize
.
出于某种原因,我无法在 TinyMCE 中显示字体菜单。这是我的代码:
$("#page_text_mce").tinymce({
script_url : '/admin/public/js/tinymce/tinymce.min.js',
plugins: [
"advlist autolink link image lists charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars insertdatetime media nonbreaking",
"table contextmenu directionality emoticons paste textcolor responsivefilemanager"
],
toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect fontselect | fontsize",
toolbar2: "| responsivefilemanager | link unlink anchor | image media | forecolor backcolor | print preview code ",
image_advtab: true ,
external_filemanager_path:"/admin/filemanager/",
filemanager_title:"Responsive Filemanager" ,
external_plugins: { "filemanager" : "/admin/filemanager/plugin.min.js"},
height: 330,
width: 1050
});
我不确定我做错了什么。
toolbar1
的字体大小 属性 值错误,应该是 fontsizeselect
。不是 fontsize
.