From: garvinhicking Date: Mon, 22 Aug 2005 12:39:39 +0000 (+0000) Subject: Update WYSIWYG editors to properly work with (multiple) nuggets: X-Git-Tag: 0.9~190 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=253f1aec21ba3b4fceeec8f223c3daa44d314700;p=s9y.git Update WYSIWYG editors to properly work with (multiple) nuggets: * Staticpages, Plugin config, Entry body/Extended body (also requires 0.9 nightly update!) --- diff --git a/include/admin/plugins.inc.php b/include/admin/plugins.inc.php index 1488a9c..3983044 100644 --- a/include/admin/plugins.inc.php +++ b/include/admin/plugins.inc.php @@ -509,6 +509,10 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) { } if (isset($serendipity['wysiwyg']) && $serendipity['wysiwyg'] && count($htmlnugget) > 0) { + $ev = array('nuggets' => $htmlnugget, 'skip_nuggets' => false); + serendipity_plugin_api::hook_event('backend_wysiwyg_nuggets', $ev); + + if ($ev['skip_nuggets'] === false) { ?>