Archived
1
0

Load ckeditor for html-nugget (#27)

Need still to be tested and adapted for other editors
This commit is contained in:
onli
2013-07-23 23:30:02 +02:00
parent 827248cc74
commit 068767c80d
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -154,6 +154,7 @@ function serendipity_printEntryForm($targetURL, $hiddens = array(), $entry = arr
}
function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
# init == true when already editor was already initialized
static $init = false;
global $serendipity;
+1 -1
View File
@@ -409,7 +409,7 @@ function serendipity_plugin_config(&$plugin, &$bag, &$name, &$desc, &$config_nam
if (!function_exists('serendipity_emit_htmlarea_code')) {
@include_once dirname(__FILE__) . '/functions_entries_admin.inc.php';
}
serendipity_emit_htmlarea_code('nuggets', 'nuggets', true);
serendipity_emit_htmlarea_code("nuggets{$elcount}", 'nuggets', true);
}
$out_stack[$config_item] = serendipity_smarty_show($tfile, $data);
+1 -1
View File
@@ -1,4 +1,4 @@
{if $init}
{if $init == false}
<script src="{$serendipityHTTPPath}htmlarea/ckeditor/ckeditor.js"></script>
{/if}
<script>