From: Yves K. <yku...@us...> - 2004-10-26 18:39:01
|
Update of /cvsroot/phpwebsite-comm/modules/xwysiwyg/js In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32573/xwysiwyg/js Modified Files: wysiwyg.php Log Message: a few modifications Index: wysiwyg.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/xwysiwyg/js/wysiwyg.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wysiwyg.php 26 Oct 2004 07:25:50 -0000 1.2 --- wysiwyg.php 26 Oct 2004 18:38:01 -0000 1.3 *************** *** 31,34 **** --- 31,44 ---- } + + // xwysiwyg-code + if ($xwysiwyg) { + $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php + //$js = ""; + $GLOBALS['xwysiwyg']++; + } + + + require_once(PHPWS_SOURCE_DIR.'core/Text.php'); include(PHPWS_SOURCE_DIR.'conf/javascriptSettings.php'); *************** *** 138,142 **** } ! $eid = $GLOBALS['xwysiwyg']; $js = "<div id=\"xw$eid\" class=\"xw$eid\"><a name=\"wysiwyg{$GLOBALS['wysiwyg']}\" />\n"; $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addBold('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add bold'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/bold.gif", "Bold", 21, 20) . "</a>\n"; --- 148,152 ---- } ! $eid = $GLOBALS['xwysiwyg']; // ykuendig added a div here to hide the buttons in request-mode $js = "<div id=\"xw$eid\" class=\"xw$eid\"><a name=\"wysiwyg{$GLOBALS['wysiwyg']}\" />\n"; $js .= "<a href=\"#wysiwyg{$GLOBALS['wysiwyg']}\" tabindex=\"".$GLOBALS['wysiwyg_tab_index']++."\" onclick=\"addBold('{$form_name}', '{$section_name}');\" onmouseover=\"window.status='Add bold'; return true;\" onmouseout=\"window.status='';\">" . phpws_text::imageTag("./images/javascript/wysiwyg/bold.gif", "Bold", 21, 20) . "</a>\n"; *************** *** 188,202 **** } ! $js .= "<br /></div>\n"; $GLOBALS['wysiwyg']++; } - // xwysiwyg-code - if ($xwysiwyg) { - $GLOBALS['xwysiwyg_areas'][] = $section_name; //write an array for the theme.php - //$js = ""; - $GLOBALS['xwysiwyg']++; - } - ?> \ No newline at end of file --- 198,205 ---- } ! $js .= "<br /></div>\n"; //ykuendig closes the div for request-mode $GLOBALS['wysiwyg']++; } ?> \ No newline at end of file |