emit multiple nuggets for core JS-Editor
and only use Spawnnuggets if exist. This is for multi-nugget-textareas, not using the wysiwyg* event hooks, eg contactform plugin < v.1.17
This commit is contained in:
parent
f38d72dec5
commit
1e6fda11e7
@ -416,7 +416,8 @@ 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{$elcount}", 'nuggets', true);
|
||||
// use SpawnMulti false per default (for multi nugget textareas, eg contactform plugin < v.1.17) - but where do we use jsname though?
|
||||
serendipity_emit_htmlarea_code("nuggets{$elcount}","nuggets{$elcount}");
|
||||
}
|
||||
$assign_plugin_config($data);
|
||||
|
||||
|
@ -62,11 +62,12 @@
|
||||
{if $ev['skip_nuggets'] === false && $init !== false}
|
||||
<script>
|
||||
function Spawnnugget() {
|
||||
/* init plugin nuggets when not using the default wysiwyg-editor */
|
||||
/* init plugin nuggets when not using the default wysiwyg-editor */
|
||||
{foreach $ev['nuggets'] AS $htmlnuggetid}
|
||||
Spawnnuggets('{$htmlnuggetid}');
|
||||
if (window.Spawnnuggets) Spawnnuggets('{$htmlnuggetid}');
|
||||
{/foreach}
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
|
||||
{/if}
|
||||
|
Loading…
x
Reference in New Issue
Block a user