How can I hide the TinyMCE outline if the field is inactive?
2 answers
To work with the tinymce initialization configuration, the following configuration parameter must be set: (jQuery js library).
setup : function(ed) {
ed.onInit.add(function(ed, event) {
$(ed.getBody()).blur(function() {
$('#' + ed.id + '_tbl '+'.mceToolbar').hide();
});
$(ed.getBody()).focus(function() {
$('#' + ed.id + '_tbl '+'.mceToolbar').show();
});
});
},
+3
source to share
If it just hides the toolbar, there is a plugin, I think with the latest Tinymce we have an option. Will this work? http://www.tinymce.com/wiki.php/API3:method.tinymce.ui.Toolbar.remove
0
source to share