From: brockhaus Date: Sun, 5 Aug 2007 18:16:33 +0000 (+0000) Subject: Made pasting to TinyMCE work X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=06ec144afd43fe4ff84fc72bdf13933b4b344592;p=s9y.git Made pasting to TinyMCE work --- diff --git a/serendipity_editor.js b/serendipity_editor.js index 8bcbec1..3b5c418 100644 --- a/serendipity_editor.js +++ b/serendipity_editor.js @@ -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 {