document better multiple nugget example gratia plugin
contactform will probably change, when this fixes are out.
This commit is contained in:
@ -416,7 +416,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';
|
||||
}
|
||||
// use SpawnMulti false per default (for multi nugget textareas, eg contactform plugin < v.1.17) - but where do we use jsname though?
|
||||
// use SpawnMulti false per default (for multi nugget textareas, eg linklist sidebar plugin) - but where do we use jsname though?
|
||||
serendipity_emit_htmlarea_code("nuggets{$elcount}","nuggets{$elcount}");
|
||||
}
|
||||
$assign_plugin_config($data);
|
||||
|
@ -60,12 +60,15 @@
|
||||
{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}
|
||||
|
||||
if (window.Spawnnuggets) Spawnnuggets('{$htmlnuggetid}');
|
||||
{/foreach}
|
||||
|
||||
}
|
||||
</script>
|
||||
{/if}
|
||||
|
Reference in New Issue
Block a user