diff --git a/deployment/serendipity_editor.js b/deployment/serendipity_editor.js index acac0b2b..c41b0828 100644 --- a/deployment/serendipity_editor.js +++ b/deployment/serendipity_editor.js @@ -288,7 +288,7 @@ function serendipity_imageSelector_done(textarea) block = insert; } - if (typeof(parent.self.opener.htmlarea_editors) != 'undefined' && typeof(parent.self.opener.htmlarea_editors[textarea] != 'undefined')) { + 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 (parent.self.opener.editorref) { parent.self.opener.editorref.surroundHTML(block, ''); diff --git a/serendipity_editor.js b/serendipity_editor.js index acac0b2b..c41b0828 100644 --- a/serendipity_editor.js +++ b/serendipity_editor.js @@ -288,7 +288,7 @@ function serendipity_imageSelector_done(textarea) block = insert; } - if (typeof(parent.self.opener.htmlarea_editors) != 'undefined' && typeof(parent.self.opener.htmlarea_editors[textarea] != 'undefined')) { + 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 (parent.self.opener.editorref) { parent.self.opener.editorref.surroundHTML(block, '');