Made pasting to TinyMCE work

This commit is contained in:
Grischa Brockhaus 2007-08-05 18:16:33 +00:00
parent e9eeac61df
commit 5671308a02

View File

@ -290,6 +290,8 @@ function serendipity_imageSelector_done(textarea)
if (typeof(parent.self.opener.htmlarea_editors) != 'undefined' && typeof(parent.self.opener.htmlarea_editors[textarea]) != 'undefined') {
parent.self.opener.htmlarea_editors[textarea].surroundHTML(block, '');
} else if (typeof(parent.self.opener.TinyMCE) !='undefined') {
parent.self.opener.tinyMCE.execCommand('mceInsertRawHTML', true, block);
} else if (parent.self.opener.editorref) {
parent.self.opener.editorref.surroundHTML(block, '');
} else {