init plugin nuggets when not using default JS-Editor
The hook btw is useless here, since it is already called at https://github.com/s9y/Serendipity/blob/2.0/include/functions_plugins_admin.inc.php#L640 We should remove it here in the tpl.
This commit is contained in:
parent
7e0eadb254
commit
563e5a704c
@ -58,4 +58,15 @@
|
||||
{/if}
|
||||
{if $spawnNuggets}
|
||||
{serendipity_hookPlugin hook="backend_wysiwyg_nuggets" eventData=$ev hookAll=true}
|
||||
|
||||
{if $ev['skip_nuggets'] === false && $init !== false}
|
||||
<script>
|
||||
function Spawnnugget() {
|
||||
/* init plugin nuggets when not using the default wysiwyg-editor */
|
||||
{foreach $ev['nuggets'] AS $htmlnuggetid}
|
||||
Spawnnuggets('{$htmlnuggetid}');
|
||||
{/foreach}
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
{/if}
|
||||
|
Loading…
x
Reference in New Issue
Block a user