I have these two lines of code one after another.
tinymce.execCommand('mceAddControl',true,'email_body');
tinyMCE.activeEditor.setContent(data.tplCustom.htmltemplate);
Second line tries to set content even before the tinymce is done . I think cause of that I am getting " tinyMCE.activeEditor is null" error.
Is there any way to wait until its loaded ? Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…