From d9441b70f2e39d1e133572bff96432720c12a391 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Tue, 11 Apr 2006 07:08:21 +0000 Subject: [PATCH] Jay Bertrandts patch for fixup multi-spawened WYSIWYG controls. HUGE thanks! --- include/functions_entries_admin.inc.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) { -- 2.39.5