To do this with the jquery plugin, I needed to do this:
$('textarea').tinymce({ ... setup: function(editor) { var scriptLoader = new tinymce.dom.ScriptLoader(); scriptLoader.add("Your first script"); scriptLoader.add("Your second script"); scriptLoader.loadQueue(); ... }); });
source share