TinyMCE allows you to create a JavaScript function to be executed when the editor first loads. Here is an example of how to do this with TinyMCE:
tinyMCE.init({
mode : "textareas",
theme : "simple",
setup : function() { alert('This function runs when TinyMCE has fully loaded.') );
}
});
In older versions of TinyMCE I could accomplish this by hacking cms/javascript/tinymce.template.js but now that file seems to be replaced with a dynamic alternative.
How can I add a setup : function() to TinyMCE in SilverStripe version 2.4+?