2008-01-09 09:14:29 +01:00
|
|
|
// send html to the post editor
|
|
|
|
function send_to_editor(h) {
|
2008-04-30 22:12:39 +02:00
|
|
|
var win = window.dialogArguments || opener || parent || top;
|
|
|
|
|
2008-01-09 09:14:29 +01:00
|
|
|
tinyMCE = win.tinyMCE;
|
2008-03-06 20:48:54 +01:00
|
|
|
if ( typeof tinyMCE != 'undefined' && ( ed = tinyMCE.getInstanceById('content') ) && !ed.isHidden() ) {
|
2008-01-09 09:14:29 +01:00
|
|
|
tinyMCE.selectedInstance.getWin().focus();
|
|
|
|
tinyMCE.execCommand('mceInsertContent', false, h);
|
|
|
|
} else
|
|
|
|
win.edInsertContent(win.edCanvas, h);
|
2008-03-02 21:17:30 +01:00
|
|
|
}
|