Load ckeditor for html-nugget (#27)
Need still to be tested and adapted for other editors
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
{if $init}
|
||||
{if $init == false}
|
||||
<script src="{$serendipityHTTPPath}htmlarea/ckeditor/ckeditor.js"></script>
|
||||
{/if}
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user