1
0

document better multiple nugget example gratia plugin

contactform will probably change, when this fixes are out.
This commit is contained in:
Ian
2015-06-01 16:51:28 +02:00
parent eaee2d1f3a
commit 1b1a130e38
2 changed files with 4 additions and 1 deletions

View File

@ -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);

View File

@ -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}