我试图隐藏TinyMCE工具栏,当用户点击另一个页面元素并离开文本区域(所以本质上onBlur)。我已经找到解决方案,它将禁用Blur上的富文本编辑器功能,但我只需要隐藏工具栏并保留富文本显示(而不是纯文本和html标记)。如何隐藏TinyMCE工具栏onBlur而不完全禁用富文本编辑器?
任何建议将不胜感激...谢谢!
这是我现在有:(它使用外部工具栏)
tinyMCE.init({
mode : "textareas",
theme : "advanced",
plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
theme_advanced_buttons1 : "fontselect,fontsizeselect,|,bullist,numlist,|,outdent,indent,|,blockquote,image,code,|,fullscreen",
theme_advanced_buttons2 : "bold,italic,underline,strikethrough,sub,sup,hr,|,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink",
theme_advanced_buttons3 : "tablecontrols,|,charmap",
theme_advanced_toolbar_location : "external",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
});
This is some sample content.
Hide Toolbar