From faa0781c8bf8804e374989feed7f0f7285752466 Mon Sep 17 00:00:00 2001 From: onli Date: Fri, 14 Jun 2013 20:39:29 +0200 Subject: [PATCH] smartified serendipity_emit_htmlarea_code --- include/functions_entries_admin.inc.php | 197 ++++-------------------- templates/2k11/admin/wysiwyg_init.tpl | 161 +++++++++++++++++++ 2 files changed, 187 insertions(+), 171 deletions(-) create mode 100644 templates/2k11/admin/wysiwyg_init.tpl diff --git a/include/functions_entries_admin.inc.php b/include/functions_entries_admin.inc.php index 20ea5a3a..0f5a96b3 100644 --- a/include/functions_entries_admin.inc.php +++ b/include/functions_entries_admin.inc.php @@ -186,24 +186,6 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) { if (empty($xinha_custom)) { $xinha_custom = 'htmlarea/my_custom.js'; } - - if (!$init) { -?> - - - - - - - - - - - + _editor_url = "{$serendipityHTTPPath}htmlarea/"; + _editor_lang = "{if $xinha}{$lang}{else}{$CONST.WYSIWYG_LANG}{/if}"; + _editor_skin = "silva"; + var editorref = ''; + + + {if $xinha} + + + {else} + + {/if} +{/if} + + + \ No newline at end of file