简体   繁体   English

TinyMCE按钮未显示

[英]TinyMCE buttons not showing

I have added indent and outdent buttons to the tiny MCE configuration as follows: 我已将缩进和伸出按钮添加到微型MCE配置中,如下所示:

tinyMCE.init({ // General options mode : "textareas", theme : "advanced", editor_selector : cl2, skin : "o2k7", plugins : "advimage,advlink,spellchecker,inlinepopups,contextmenu,paste,noneditable,mergefields", spellchecker_languages : "+English=en", // Theme options theme_advanced_buttons1 : "bold,italic,underline,|,forecolor,backcolor,|,fontselect,fontsizeselect,|,code,removeformat,|,spellchecker", theme_advanced_buttons2 : "justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,link,unlink,image,hr,|,cut,copy,paste,pasteword,| ,indent,outdent,| ,undo,redo", theme_advanced_buttons3 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_path : false, theme_advanced_resizing : true, cleanup_on_startup : false, convert_fonts_to_spans : false, convert_newlines_to_brs : false, inline_styles : false, remove_linebreaks : true, remove_trailing_nbsp : true, trim_span_elements : false, co tinyMCE.init({//常规选项模式:“ textareas”,主题:“ advanced”,editor_selector:cl2,skin:“ o2k7”,插件:“ advimage,advlink,spellchecker,inlinepopups,上下文菜单,粘贴,不可编辑,合并域” ,spellchecker_languages:“ + English = zh”,//主题选项theme_advanced_buttons1:“粗体,斜体,下划线,|,前色,背景色,|,字体选择,字体大小选择,|,代码,删除格式,|,拼写检查器”,theme_advanced_buttons2:“ justifyleft ,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,链接,取消链接,图像,hr,|,剪切,复制,粘贴,粘贴词,| ,indent, outdent ,| ,undo,redo“,theme_advanced_buttons3:”“ ,theme_advanced_toolbar_location:“ top”,theme_advanced_toolbar_align:“ left”,theme_advanced_statusbar_location:“ bottom”,theme_advanced_pa​​th:false,theme_advanced_resizing:true,cleanup_on_startup:false,convert_fonts_to_spans:false,spn_line,true,clean_splens:true, ,trim_span_elements:false,co ntent_css : "htmlArea/styles/client.css" }); ntent_css:“ htmlArea / styles / client.css”}); } }

Investigating the html generated reveals that no table cell containing the indent/outdent links exists. 对生成的html进行调查后发现,不存在包含缩进/缩进链接的表单元。 Have checked tinyMCE's image directory and the relevant images for the buttons exist. 检查了tinyMCE的图像目录,并且按钮的相关图像存在。 Is there another configuration setting which needs to be changed? 是否有另一个需要更改的配置设置?

Version is 3.5.8. 版本是3.5.8。

Thanks in advance. 提前致谢。

Issue caused by adding indent outdent config options to wrong instantiation of editor on page. 在页面上错误地实例化编辑器时增加缩进outdent配置选项所引起的问题。

Another one was located, once added there appeared appeared as normal. 找到了另一个,一旦添加,就出现了正常现象。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM