equal
deleted
inserted
replaced
2153 { |
2153 { |
2154 global $lang; |
2154 global $lang; |
2155 $randomid = md5(microtime() . mt_rand()); |
2155 $randomid = md5(microtime() . mt_rand()); |
2156 $html = ''; |
2156 $html = ''; |
2157 $html .= '<textarea name="' . $name . '" rows="'.$rows.'" cols="'.$cols.'" style="width: 100%;" id="toggleMCEroot_'.$randomid.'">' . $content . '</textarea>'; |
2157 $html .= '<textarea name="' . $name . '" rows="'.$rows.'" cols="'.$cols.'" style="width: 100%;" id="toggleMCEroot_'.$randomid.'">' . $content . '</textarea>'; |
|
2158 |
|
2159 /* |
2158 $html .= '<div style="float: right; display: table;" id="mceSwitchAgent_' . $randomid . '">' . $lang->get('etc_tinymce_btn_text') . ' | <a href="#" onclick="if ( !KILL_SWITCH ) { toggleMCE_'.$randomid.'(); return false; }">' . $lang->get('etc_tinymce_btn_graphical') . '</a></div>'; |
2160 $html .= '<div style="float: right; display: table;" id="mceSwitchAgent_' . $randomid . '">' . $lang->get('etc_tinymce_btn_text') . ' | <a href="#" onclick="if ( !KILL_SWITCH ) { toggleMCE_'.$randomid.'(); return false; }">' . $lang->get('etc_tinymce_btn_graphical') . '</a></div>'; |
2159 $html .= '<script type="text/javascript"> |
2161 $html .= '<script type="text/javascript"> |
2160 // <![CDATA[ |
2162 // <![CDATA[ |
2161 function toggleMCE_'.$randomid.'() |
2163 function toggleMCE_'.$randomid.'() |
2162 { |
2164 { |
2175 panel.innerHTML = \'<a href="#" onclick="if ( !KILL_SWITCH ) { toggleMCE_'.$randomid.'(); return false; }">\' + text_editor + \'</a> | \' + graphical_editor; |
2177 panel.innerHTML = \'<a href="#" onclick="if ( !KILL_SWITCH ) { toggleMCE_'.$randomid.'(); return false; }">\' + text_editor + \'</a> | \' + graphical_editor; |
2176 } |
2178 } |
2177 } |
2179 } |
2178 // ]]> |
2180 // ]]> |
2179 </script>'; |
2181 </script>'; |
|
2182 */ |
|
2183 |
2180 return $html; |
2184 return $html; |
2181 } |
2185 } |
2182 |
2186 |
2183 /** |
2187 /** |
2184 * Allows individual parsing of template files. Similar to phpBB but follows the spirit of object-oriented programming ;) |
2188 * Allows individual parsing of template files. Similar to phpBB but follows the spirit of object-oriented programming ;) |