I solved the problem as written here: http://tinymce.moxiecode.com/forum/viewtopic.php?pid=23065#p23065
My script for dynamically loading tinyMCE via jQuery now:
// JS_FOLDER = "http://mydomain.com/js" function initTinyMCE(JS_FOLDER, selector) { var path = JS_FOLDER + '/GlobalUI/tinymce'; if (selector == undefined) selector = 'mceEditor'; var initFunct = function() { tinyMCE.baseURL = path + '/jscripts/tiny_mce/'; // THE IMPORTANT LINE tinyMCE.init({ mode: "specific_textareas", editor_selector: selector, width : "700px", theme: "advanced", theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,undo,redo,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect,forecolor,backcolor", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "", theme_advanced_resizing : true, // Example content CSS (should be your site CSS) content_css : path + "/css/custom_css.css" }); } if(typeof tinyMCE == "undefined") { $.getScript(path + '/jscripts/tiny_mce/tiny_mce_src.js', function() { initFunct(); }); } else { initFunct(); }
source share