From: garvinhicking Date: Tue, 11 Apr 2006 07:08:21 +0000 (+0000) Subject: Jay Bertrandts patch for fixup multi-spawened WYSIWYG controls. X-Git-Tag: 1.0~52 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d9441b70f2e39d1e133572bff96432720c12a391;p=s9y.git Jay Bertrandts patch for fixup multi-spawened WYSIWYG controls. HUGE thanks! --- diff --git a/include/functions_entries_admin.inc.php b/include/functions_entries_admin.inc.php index 4a15052..78e8148 100644 --- a/include/functions_entries_admin.inc.php +++ b/include/functions_entries_admin.inc.php @@ -511,9 +511,17 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) { // Thanks to Randall for pointing this out! // HTMLArea.loadPlugin("SpellChecker"); // [SPELLCHECK] + + // when spawning multiple editors at once, keep track of instances in this array + var htmlarea_editors = new Array(); + var editor = null; var config = null; + function Spawn() { - editor = new HTMLArea(""); + editor = new HTMLArea(""); + + htmlarea_editors[""] = editor; + config = editor.config; config.registerButton('image_selector', '', 'htmlarea/images/ed_s9yimage.gif', false, function(editor, id) {