]> git.mjollnir.org Git - s9y.git/commitdiff
Update WYSIWYG editors to properly work with (multiple) nuggets:
authorgarvinhicking <garvinhicking>
Mon, 22 Aug 2005 12:39:39 +0000 (12:39 +0000)
committergarvinhicking <garvinhicking>
Mon, 22 Aug 2005 12:39:39 +0000 (12:39 +0000)
* Staticpages, Plugin config, Entry body/Extended body

(also requires 0.9 nightly update!)

include/admin/plugins.inc.php

index 1488a9c9db6e15640d0ddcfd5878f25404c487ba..398304456d2a2a71d1d60195d27b422368c4b114 100644 (file)
@@ -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) {
 ?>
     <script type="text/javascript">
     function Spawnnugget() {
@@ -518,6 +522,7 @@ if (isset($_GET['serendipity']['plugin_to_conf'])) {
     }
     </script>
 <?php
+        }
     }
 ?>
     </div>