出于某种原因,我无法让字体菜单出现在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
});
我不确定我做错了什么。
答案 0 :(得分:0)
toolbar1
字体大小的属性值错误,应为fontsizeselect
。不是fontsize
。