Remove menu and status bars in TinyMCE 4

I looked at the source and it was fairly obvious: tinyMCE.init({ menubar:false, statusbar: false, //etc }) This removes both. You can also customise what parts of the default menu bar are visible by specifying a string of enabled menus – e.g. menubar: ‘file edit’ You can define your own menus like this: menu : { … Read more

JQuery to load Javascript file dynamically

Yes, use getScript instead of document.write – it will even allow for a callback once the file loads. You might want to check if TinyMCE is defined, though, before including it (for subsequent calls to ‘Add Comment’) so the code might look something like this: $(‘#add_comment’).click(function() { if(typeof TinyMCE == “undefined”) { $.getScript(‘tinymce.js’, function() { … Read more