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:
@@ -58,4 +58,15 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{if $spawnNuggets}
|
{if $spawnNuggets}
|
||||||
{serendipity_hookPlugin hook="backend_wysiwyg_nuggets" eventData=$ev hookAll=true}
|
{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}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user