1 // send html to the post editor
2 function send_to_editor(h) {
3 var win = window.opener ? window.opener : window.dialogArguments;
7 if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.getInstanceById('content') ) && !ed.isHidden() ) {
8 tinyMCE.selectedInstance.getWin().focus();
9 tinyMCE.execCommand('mceInsertContent', false, h);
11 win.edInsertContent(win.edCanvas, h);