[Fusionforge-commits] r16497 - trunk/src/plugins/headermenu/view/admin

Franck VILLAUME nerville at fusionforge.org
Wed Oct 10 10:49:48 CEST 2012


Author: nerville
Date: 2012-10-10 10:49:47 +0200 (Wed, 10 Oct 2012)
New Revision: 16497

Modified:
   trunk/src/plugins/headermenu/view/admin/viewGlobalConfiguration.php
Log:
include fckeditor support in outermenu new page creation

Modified: trunk/src/plugins/headermenu/view/admin/viewGlobalConfiguration.php
===================================================================
--- trunk/src/plugins/headermenu/view/admin/viewGlobalConfiguration.php	2012-10-10 08:08:23 UTC (rev 16496)
+++ trunk/src/plugins/headermenu/view/admin/viewGlobalConfiguration.php	2012-10-10 08:49:47 UTC (rev 16497)
@@ -98,8 +98,20 @@
 echo html_build_radio_buttons_from_arrays($vals, $texts, $select_name, 'url', false);
 echo '</td>';
 echo '</tr><tr id="htmlcode" style="display:none">';
-echo '<td>'._('Your HTML Code.').'</td><td><textarea name="htmlcode" rows="15" cols="70">'._('Just paste your code here...').'</textarea></td>';
-echo '</tr><tr id="urlcode" >';
+echo '<td>'._('Your HTML Code.').'</td><td>';
+$GLOBALS['editor_was_set_up'] = false;
+$body = _('Just paste your code here...');
+$params['name'] = 'htmlcode';
+$params['body'] = $body;
+$params['width'] = "800";
+$params['height'] = "500";
+$params['user_id'] = user_getid();
+plugin_hook("text_editor", $params);
+if (!$GLOBALS['editor_was_set_up']) {
+	echo '<textarea name="htmlcode" rows="5" cols="80">'.$body.'</textarea>';
+}
+unset($GLOBALS['editor_was_set_up']);
+echo '</td></tr><tr id="urlcode" >';
 echo '<td>'._('URL').'</td><td><input name="link" type="text" maxsize="255" /></td>';
 echo '</tr><tr>';
 echo '<td>';




More information about the Fusionforge-commits mailing list