diff --git a/include/functions_entries_admin.inc.php b/include/functions_entries_admin.inc.php index fe0d1474..796627a6 100644 --- a/include/functions_entries_admin.inc.php +++ b/include/functions_entries_admin.inc.php @@ -544,7 +544,7 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) { global $serendipity; if ($init && $spawnMulti) { - return true; + return; } if (isset($serendipity['wysiwyg']) && $serendipity['wysiwyg']) { @@ -558,7 +558,7 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) { serendipity_plugin_api::hook_event('backend_wysiwyg', $eventData); if ($eventData['skip']) { - return true; + return; } if (file_exists($serendipity['serendipityPath'] . 'htmlarea/XinhaCore.js')) { @@ -616,12 +616,12 @@ 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 + + // when spawning multiple editors at once, keep track of instances in this array var htmlarea_editors = new Array(); - + var editor = null; var config = null; - + var btn_callbacks = new Array(); // Serendipity standardized editor functions @@ -677,10 +677,10 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) { } function Spawn() { - editor = new HTMLArea(""); + editor = new HTMLArea(""); - htmlarea_editors[""] = editor; - + htmlarea_editors[""] = editor; + config = editor.config; config.registerButton('image_selector', '', 'htmlarea/images/ed_s9yimage.gif', false, function(editor, id) {