handling/configuring event when tinymce editor initializes
1 2 tinyMCE.init({ 3 ... 4 setup : function(ed) { 5 ed.onInit.add(window.testfunc); 6 7 } 8 }); 9 10 function testfunc() 11 { 12 alert('Editor initialized'); 13 14 //set content for editor 15 var ed = tinyMCE.get('editor'); 16 ed.setContent(hfContent.value);//setting value from hidden field 17 }