From 3368ac61048e6459a6d3a5a27f33c556921995a1 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Tue, 14 Jul 2009 11:05:54 +0000 Subject: [PATCH] TinyMce changes. - no longer need to declare the ID of the textarea element. Just include the class e-wysiwyg. eg. "; + $text .= ""; $text .= "
".display_help('cpage-help', 'cpage')." diff --git a/e107_admin/header.php b/e107_admin/header.php index eb6937b6b..03d8acc62 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -12,8 +12,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/header.php,v $ -| $Revision: 1.32 $ -| $Date: 2009-07-14 03:16:16 $ +| $Revision: 1.33 $ +| $Date: 2009-07-14 11:05:49 $ | $Author: e107coders $ +---------------------------------------------------------------+ */ @@ -138,7 +138,7 @@ echo "\n"; // Wysiwyg JS support on or off. // your code should run off e_WYSIWYG -if (varset($pref['wysiwyg'],FALSE) && check_class($pref['post_html']) && varset($e_wysiwyg) != "") { +if (varset($pref['wysiwyg'],FALSE) && check_class($pref['post_html'])) { define("e_WYSIWYG",TRUE); }else{ define("e_WYSIWYG",FALSE); diff --git a/e107_admin/mailout.php b/e107_admin/mailout.php index a7532726d..0e063a5ec 100644 --- a/e107_admin/mailout.php +++ b/e107_admin/mailout.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/mailout.php,v $ -| $Revision: 1.13 $ -| $Date: 2009-02-21 11:55:38 $ -| $Author: e107steved $ +| $Revision: 1.14 $ +| $Date: 2009-07-14 11:05:49 $ +| $Author: e107coders $ | | Work in progress - supplementary mailer plugin | @@ -52,10 +52,7 @@ Each mailout task is implemented as a class, which must include a number of mand require_once("../class2.php"); $e_sub_cat = 'mail'; -if (!isset($_POST['submit'])) -{ - $e_wysiwyg = "email_body"; -} + set_time_limit(180); session_write_close(); require_once(e_ADMIN."auth.php"); @@ -961,7 +958,7 @@ function show_mailform($foo="") - + "; diff --git a/e107_admin/menus.php b/e107_admin/menus.php index c2bc1a493..a8a64d0ef 100644 --- a/e107_admin/menus.php +++ b/e107_admin/menus.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/menus.php,v $ -| $Revision: 1.27 $ -| $Date: 2009-07-12 10:11:34 $ +| $Revision: 1.28 $ +| $Date: 2009-07-14 11:05:49 $ | $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -312,6 +312,8 @@ class menuManager{ { global $pref,$sql,$admin_log,$ns; + $menu_act = ""; + if (isset($_POST['menuAct'])) { foreach ($_POST['menuAct'] as $k => $v) @@ -324,21 +326,6 @@ class menuManager{ } } - if ($menu_act == 'config') - { - - } - - - - - - - - if ($menu_act == "adv") - { - // $this->menuVisibilityOptions(); - } if ($menu_act == "move") { @@ -778,7 +765,7 @@ class menuManager{ $text .= "
\n"; } - + $color = ""; while ($row = $sql->db_Fetch()) { $pdeta = ""; diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index f22188e26..9f7270bf7 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -9,8 +9,8 @@ * News Administration * * $Source: /cvs_backup/e107_0.8/e107_admin/newspost.php,v $ - * $Revision: 1.42 $ - * $Date: 2009-07-04 13:36:15 $ + * $Revision: 1.43 $ + * $Date: 2009-07-14 11:05:50 $ * $Author: e107coders $ */ require_once("../class2.php"); @@ -123,7 +123,6 @@ function headerjs() return $ret; } $e_sub_cat = 'news'; -$e_wysiwyg = 'data,news_extended'; require_once('auth.php'); require_once (e_HANDLER.'message_handler.php'); @@ -163,6 +162,8 @@ class admin_newspost var $_cal = array(); var $_pst; var $_fields; + var $_sort_order; + var $_sort_link; function admin_newspost($qry, $pstobj) { @@ -174,8 +175,9 @@ class admin_newspost $this->_pst = &$pstobj; $this->_fields = array( - "news_id" => array("title" => LAN_NEWS_45, "type"=>"number", "width" => "5%", "thclass" => "center", "url" => e_SELF."?main.news_id.{$sort_link}.".$this->getFrom()), - "news_title" => array("title" => NWSLAN_40, "type"=>"text", "width" => "30%", "thclass" => "", "url" => e_SELF."?main.news_title.{$sort_link}.".$this->getFrom()), + "checkboxes" => array("title" => "", "forced"=> TRUE, "width" => "3%", "thclass" => "center first", "url" => ""), + "news_id" => array("title" => LAN_NEWS_45, "type"=>"number", "width" => "5%", "thclass" => "center", "url" => e_SELF."?main.news_id.".$this->_sort_link.".".$this->getFrom()), + "news_title" => array("title" => NWSLAN_40, "type"=>"text", "width" => "30%", "thclass" => "", "url" => e_SELF."?main.news_title.".$this->_sort_link.".".$this->getFrom()), "news_author" => array("title" => LAN_NEWS_50, "type"=>"user", "width" => "10%", "thclass" => "", "url" => ""), "news_datestamp" => array("title" => LAN_NEWS_32, "type"=>"datestamp", "width" => "15%", "thclass" => "", "url" => ""), "news_category" => array("title" => NWSLAN_6, "type"=>"dropdown", "width" => "auto", "thclass" => "", "url" => ""), @@ -197,10 +199,13 @@ class admin_newspost $action = varsettrue($tmp[0], 'main'); $sub_action = varset($tmp[1], ''); $id = isset($tmp[2]) && is_numeric($tmp[2]) ? intval($tmp[2]) : 0; - $sort_order = isset($tmp[2]) && !is_numeric($tmp[2]) ? $tmp[2] : 'desc'; + $this->_sort_order = isset($tmp[2]) && !is_numeric($tmp[2]) ? $tmp[2] : 'desc'; $from = intval(varset($tmp[3],0)); unset($tmp); + if ($this->_sort_order != 'asc') $this->_sort_order = 'desc'; + $this->_sort_link = ($this->_sort_order) == 'asc' ? 'desc' : 'asc'; + $this->_request = array($action, $sub_action, $id, $sort_order, $from); } @@ -592,9 +597,9 @@ class admin_newspost require_once(e_HANDLER."form_handler.php"); $frm = new e_form(true); //enable inner tabindex counter - $sort_order = $this->getSortOrder(); - if ($sort_order != 'asc') $sort_order = 'desc'; - $sort_link = $sort_order == 'asc' ? 'desc' : 'asc'; // Effectively toggle setting for headings + // Effectively toggle setting for headings + + $amount = 10;//TODO - pref if(!is_array($user_pref['admin_news_columns'])) @@ -651,7 +656,7 @@ class admin_newspost } else { - $query = "ORDER BY ".($this->getSubAction() ? $this->getSubAction() : "news_datestamp")." ".strtoupper($sort_order)." LIMIT ".$this->getFrom().", {$amount}"; + $query = "ORDER BY ".($this->getSubAction() ? $this->getSubAction() : "news_datestamp")." ".strtoupper($this->_sort_order)." LIMIT ".$this->getFrom().", {$amount}"; } if ($e107->sql->db_Select('news', '*', $query, ($_POST['searchquery'] ? 0 : "nowhere"))) @@ -683,6 +688,9 @@ class admin_newspost // Below must be in the same order as the field_columns above. + $rowid = "news_selected[".$row["news_id"]."]"; + $text .= "".$frm->checkbox($rowid, $row['news_id'])."\n"; + $text .= (in_array("news_id",$user_pref['admin_news_columns'])) ? "".$row['news_id']."\n" : ""; $text .= (in_array("news_title",$user_pref['admin_news_columns'])) ? "".($row['news_title'] ? $e107->tp->toHTML($row['news_title'], false,"TITLE") : "[".NWSLAN_42."]")." \n" : ""; $text .= (in_array("news_author",$user_pref['admin_news_columns'])) ? "".$author['user_name']."\n" : ""; @@ -720,7 +728,7 @@ class admin_newspost if (!varset($_POST['searchquery'])) { - $parms = $newsposts.",".$amount.",".$this->getFrom().",".e_SELF."?".$this->getAction().'.'.($this->getSubAction() ? $this->getSubAction() : 0).'.'.$sort_order.".[FROM]"; + $parms = $newsposts.",".$amount.",".$this->getFrom().",".e_SELF."?".$this->getAction().'.'.($this->getSubAction() ? $this->getSubAction() : 0).'.'.$this->_sort_order.".[FROM]"; $nextprev = $e107->tp->parseTemplate("{NEXTPREV={$parms}}"); if ($nextprev) $text .= "
".$nextprev."
"; @@ -948,7 +956,7 @@ class admin_newspost // Extended news form textarea // Fixes Firefox issue with hidden wysiwyg textarea. // XXX - WYSIWYG is already plugin, this should go - if(defsettrue('e_WYSIWYG')) $ff_expand = "tinyMCE.execCommand('mceResetDesignMode')"; + // if(defsettrue('e_WYSIWYG')) $ff_expand = "tinyMCE.execCommand('mceResetDesignMode')"; $val = (strstr($e107->tp->post_toForm($_POST['news_extended']), "[img]http") ? $e107->tp->post_toForm($_POST['news_extended']) : str_replace("[img]../", "[img]", $e107->tp->post_toForm($_POST['news_extended']))); $text .= " diff --git a/e107_admin/wmessage.php b/e107_admin/wmessage.php index c5e384379..2a7d3984b 100644 --- a/e107_admin/wmessage.php +++ b/e107_admin/wmessage.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/wmessage.php,v $ -| $Revision: 1.3 $ -| $Date: 2009-07-10 14:25:22 $ +| $Revision: 1.4 $ +| $Date: 2009-07-14 11:05:51 $ | $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -23,7 +23,6 @@ if (!getperms("M")) exit; } $e_sub_cat = 'wmessage'; -$e_wysiwyg = "data"; require_once(e_HANDLER."preset_class.php"); $pst = new e_preset; @@ -179,7 +178,7 @@ if ($action == "create" || $action == "edit") $text .= " ".WMLAN_04." - +
"; $text .= display_help("helpb", "admin"); diff --git a/e107_files/shortcode/batch/admin_shortcodes_class.php b/e107_files/shortcode/batch/admin_shortcodes_class.php index 2a782922b..ceea7055a 100644 --- a/e107_files/shortcode/batch/admin_shortcodes_class.php +++ b/e107_files/shortcode/batch/admin_shortcodes_class.php @@ -1,7 +1,7 @@ form && $pst->page) { @@ -680,7 +680,7 @@ class admin_shortcodes } $existing = is_array($pst->id) ? $pst->id[$pid] : $pst->id; - $trigger = ($e_wysiwyg && $pref['wysiwyg']) ? 'tinyMCE.triggerSave();' : ''; + // $trigger = ($e_wysiwyg && $pref['wysiwyg']) ? 'tinyMCE.triggerSave();' : ''; if (strpos($thispage, $query) !== false) { @@ -915,7 +915,7 @@ class admin_shortcodes { /* * e107 website system (c) 2001-2008 Steve Dunstan (e107.org) - * $Id: admin_shortcodes_class.php,v 1.9 2009-07-14 09:53:12 marj_nl_fr Exp $ + * $Id: admin_shortcodes_class.php,v 1.10 2009-07-14 11:05:51 e107coders Exp $ */ if (ADMIN) @@ -1182,8 +1182,7 @@ class admin_shortcodes $id = 'plugnav-'.$row['plugin_path']; - - $tmp[$id]['text'] = $e107->tp->toHTML($plug_vars['@attributes']['name'], FALSE, "defs"); + $tmp[$id]['text'] = $e107->tp->toHTML($plug_vars['@attributes']['name'], FALSE, "defs"); $tmp[$id]['description'] = $plug_vars['description']; $tmp[$id]['link'] = e_PLUGIN_ABS.$row['plugin_path'].'/'.$plug_vars['administration']['configFile']; $tmp[$id]['image'] = $icon_src ? "{$tmp[" : E_16_PLUGIN; diff --git a/e107_handlers/comment_class.php b/e107_handlers/comment_class.php index 49308df0f..42b437b8f 100644 --- a/e107_handlers/comment_class.php +++ b/e107_handlers/comment_class.php @@ -12,8 +12,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/comment_class.php,v $ -| $Revision: 1.20 $ -| $Date: 2009-07-07 06:50:55 $ +| $Revision: 1.21 $ +| $Date: 2009-07-14 11:05:52 $ | $Author: e107coders $ +----------------------------------------------------------------------------+ */ @@ -145,7 +145,7 @@ class comment { $text .= "\n".COMLAN_16."\n\n\n\n"; } $text .= $rate." \n - ".COMLAN_8.":\n\n\n
+ ".COMLAN_8.":\n\n\n
".display_help('helpb',"comment")."\n \n".$text2."\n \n ". (isset($action) && $action == "reply" ? "" : '').(isset($eaction) && $eaction == "edit" ? "" : "").(isset($content_type) && $content_type ? "" : ''). "\n\n\n\n
"; diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index ae9ded62a..f2e707400 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -9,8 +9,8 @@ * Form Handler * * $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $ - * $Revision: 1.31 $ - * $Date: 2009-07-14 03:18:16 $ + * $Revision: 1.32 $ + * $Date: 2009-07-14 11:05:52 $ * $Author: e107coders $ * */ @@ -127,7 +127,7 @@ class e_form function bbarea($name, $value, $help_mod = '', $help_tagid='') { - $options = array('class' => 'tbox large'); + $options = array('class' => 'tbox large e-wysiwyg'); if(!defsettrue('e_WYSIWYG')) { require_once(e_HANDLER."ren_help.php"); diff --git a/e107_languages/English/admin/lan_admin.php b/e107_languages/English/admin/lan_admin.php index 245bda69f..9f02a2e24 100644 --- a/e107_languages/English/admin/lan_admin.php +++ b/e107_languages/English/admin/lan_admin.php @@ -1,7 +1,7 @@ +
"; diff --git a/e107_plugins/content/admin_content_config.php b/e107_plugins/content/admin_content_config.php index 53597a344..13f97faae 100644 --- a/e107_plugins/content/admin_content_config.php +++ b/e107_plugins/content/admin_content_config.php @@ -12,9 +12,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/content/admin_content_config.php,v $ -| $Revision: 1.7 $ -| $Date: 2008-12-29 20:53:24 $ -| $Author: lisa_ $ +| $Revision: 1.8 $ +| $Date: 2009-07-14 11:05:53 $ +| $Author: e107coders $ +---------------------------------------------------------------+ */ @@ -22,7 +22,7 @@ require_once("../../class2.php"); if(!getperms("P")){header("location:".e_BASE."index.php"); exit; } $e_sub_cat = 'content'; -$e_wysiwyg = "content_text,cat_text"; + $plugindir = e_PLUGIN."content/"; require_once($plugindir."content_shortcodes.php"); diff --git a/e107_plugins/content/content_manager.php b/e107_plugins/content/content_manager.php index d655d4815..96f82d0c0 100644 --- a/e107_plugins/content/content_manager.php +++ b/e107_plugins/content/content_manager.php @@ -12,9 +12,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/content/content_manager.php,v $ -| $Revision: 1.8 $ -| $Date: 2008-10-07 19:22:20 $ -| $Author: e107steved $ +| $Revision: 1.9 $ +| $Date: 2009-07-14 11:05:53 $ +| $Author: e107coders $ +---------------------------------------------------------------+ */ @@ -63,8 +63,6 @@ if (!USER) // define e_pagetitle $aa -> setPageTitle(); -//these have to be set for the tinymce wysiwyg -$e_wysiwyg = "content_text"; // ##### DB --------------------------------------------------------------------------------------- diff --git a/e107_plugins/forum/forum_post.php b/e107_plugins/forum/forum_post.php index aa45e4b67..ba94aa375 100644 --- a/e107_plugins/forum/forum_post.php +++ b/e107_plugins/forum/forum_post.php @@ -11,14 +11,14 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/forum/forum_post.php,v $ -| $Revision: 1.35 $ -| $Date: 2009-01-25 19:19:36 $ -| $Author: mcfly_e107 $ +| $Revision: 1.36 $ +| $Date: 2009-07-14 11:05:53 $ +| $Author: e107coders $ +----------------------------------------------------------------------------+ */ require_once('../../class2.php'); -$e_wysiwyg = 'post'; + $lan_file = e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_post.php'; include(file_exists($lan_file) ? $lan_file : e_PLUGIN.'forum/languages/English/lan_forum_post.php'); diff --git a/e107_plugins/forum/forum_post_shortcodes.php b/e107_plugins/forum/forum_post_shortcodes.php index e5512027e..a8c99d8c3 100644 --- a/e107_plugins/forum/forum_post_shortcodes.php +++ b/e107_plugins/forum/forum_post_shortcodes.php @@ -78,7 +78,7 @@ class forum_post_shortcodes { global $post, $pref; $rows = (e_WYSIWYG) ? 15 : 10; - $ret = "\n
\n"; + $ret = "\n
\n"; if(!e_WYSIWYG) { $ret .= display_help('helpb', 'forum'); diff --git a/e107_plugins/tinymce/admin_config.php b/e107_plugins/tinymce/admin_config.php index c442a02de..00b756df4 100644 --- a/e107_plugins/tinymce/admin_config.php +++ b/e107_plugins/tinymce/admin_config.php @@ -9,8 +9,8 @@ * Plugin Administration - gsitemap * * $Source: /cvs_backup/e107_0.8/e107_plugins/tinymce/admin_config.php,v $ - * $Revision: 1.4 $ - * $Date: 2009-07-10 14:25:23 $ + * $Revision: 1.5 $ + * $Date: 2009-07-14 11:05:54 $ * $Author: e107coders $ * */ @@ -21,7 +21,7 @@ if(!getperms("P") || !plugInstalled('tinymce')) exit(); } -$e_wysiwyg = 'content'; + require_once (e_HANDLER.'message_handler.php'); $emessage = &eMessage::getInstance(); @@ -91,7 +91,7 @@ if($_POST['save_settings']) // is there an if $emessage? $emessage->hasMessage - + diff --git a/e107_plugins/tinymce/wysiwyg.php b/e107_plugins/tinymce/wysiwyg.php index 6bd6d84c5..40c2b0df5 100644 --- a/e107_plugins/tinymce/wysiwyg.php +++ b/e107_plugins/tinymce/wysiwyg.php @@ -4,14 +4,15 @@ | e107 website system - Tiny MCE controller file. | | $Source: /cvs_backup/e107_0.8/e107_plugins/tinymce/wysiwyg.php,v $ -| $Revision: 1.11 $ -| $Date: 2009-07-02 00:13:12 $ +| $Revision: 1.12 $ +| $Date: 2009-07-14 11:05:54 $ | $Author: e107coders $ +----------------------------------------------------------------------------+ */ function wysiwyg($formids) { + global $pref,$HANDLERS_DIRECTORY,$PLUGINS_DIRECTORY,$IMAGES_DIRECTORY; $lang = e_LANGUAGE; $tinylang = array( @@ -51,9 +52,12 @@ function start_tinyMce() { tinyMCE.init({\n"; $text .= "language : '".$tinylang[$lang]."',\n"; -$text .= "mode : 'exact',\n"; -$text .= "elements : '".$formids."',\n"; +$text .= "mode : 'textareas',\n"; +// $text .= "elements : '".$formids."',\n"; +$text .= "editor_selector : 'e-wysiwyg',\n"; +$text .= "editor_deselector : 'e-wysiwyg-off',\n"; $text .= "theme : 'advanced'\n"; + // $text .= ",plugins : 'table,contextmenu"; $admin_only = array("ibrowser","code"); @@ -104,13 +108,11 @@ theme_advanced_buttons1 : '".$pref['tinymce']['theme_advanced_buttons1']."', theme_advanced_buttons2 : '".$pref['tinymce']['theme_advanced_buttons2']."', theme_advanced_buttons3 : '".$pref['tinymce']['theme_advanced_buttons3']."', theme_advanced_buttons4 : '".$pref['tinymce']['theme_advanced_buttons4']."', -theme_advanced_toolbar_location : \"top\", +theme_advanced_toolbar_location : \"bottom\", theme_advanced_toolbar_align : \"left\", theme_advanced_statusbar_location : \"bottom\", theme_advanced_resizing : true\n"; - -$text .= ",theme_advanced_toolbar_location : 'top'"; $text .= ",extended_valid_elements : 'p[style],a[name|href|target|rel|title|style|class],img[class|src|style|alt|title|name],hr[class],span[align|class|style],div[align|class|style|height|width] ,table[class|style|cellpadding|cellspacing|background|height|width],td[background|style|class|valign|align|height|width]'"; $text .= ",invalid_elements: 'p,font,align,script,applet,iframe'\n"; $text .= ",auto_cleanup_word: true\n"; @@ -160,7 +162,7 @@ function tinymce_html_bbcode_control(type, source) { "; if(in_array("bbcode",$pref['tinymce']['plugins'])) { - $text .= " return source; "; + // $text .= " return source; "; } $text .= " diff --git a/e107_themes/templates/header_default.php b/e107_themes/templates/header_default.php index b5e77942b..f20431d7c 100644 --- a/e107_themes/templates/header_default.php +++ b/e107_themes/templates/header_default.php @@ -6,9 +6,9 @@ | Released under the terms and conditions of the GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_themes/templates/header_default.php,v $ -| $Revision: 1.35 $ -| $Date: 2009-07-13 10:17:09 $ -| $Author: marj_nl_fr $ +| $Revision: 1.36 $ +| $Date: 2009-07-14 11:05:54 $ +| $Author: e107coders $ +-----------------------------------------------------------------------------------------------+ */ @@ -94,7 +94,7 @@ echo "".(defined('e_PAGETITLE') ? e_PAGETITLE.' - ' : (defined('PAGE_NAME // Wysiwyg JS support on or off. -if (varset($pref['wysiwyg'],FALSE) && check_class($pref['post_html']) && varset($e_wysiwyg) != "") +if (varset($pref['wysiwyg'],FALSE) && check_class($pref['post_html'])) { define("e_WYSIWYG",TRUE); } diff --git a/submitnews.php b/submitnews.php index 26d12652c..2864ad584 100644 --- a/submitnews.php +++ b/submitnews.php @@ -11,14 +11,14 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/submitnews.php,v $ -| $Revision: 1.10 $ -| $Date: 2009-07-14 05:31:57 $ +| $Revision: 1.11 $ +| $Date: 2009-07-14 11:05:54 $ | $Author: e107coders $ +----------------------------------------------------------------------------+ */ require_once("class2.php"); -$e_wysiwyg = varsettrue($pref['subnews_htmlarea']) ? "submitnews_item" : ""; + require_once(HEADERF); if (!isset($pref['subnews_class'])) @@ -201,7 +201,7 @@ $text .= " <tr> <td style='width:20%' class='forumheader3'>".LAN_135."</td> <td style='width:80%' class='forumheader3'> - <textarea class='tbox' id='submitnews_item' name='submitnews_item' cols='80' style='max-width:95%' {$insertjs}>".$tp->toHTML($_POST['submitnews_item'],TRUE,'USER_BODY')."</textarea><br />"; + <textarea class='e-wysiwyg tbox' id='submitnews_item' name='submitnews_item' cols='80' style='max-width:95%' {$insertjs}>".$tp->toHTML($_POST['submitnews_item'],TRUE,'USER_BODY')."</textarea><br />"; if (!e_WYSIWYG) {