Ignore:
Timestamp:
Nov 5, 2008 5:19:44 AM (5 years ago)
Author:
alec
Message:
  • Fix HTML editor initialization on IE (#1485304)
  • move back toggle_editor function to editor.js
  • merge identity and compose editor init functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r2034 r2040  
    11741174 
    11751175 
     1176/** 
     1177 * Output HTML editor scripts 
     1178 * 
     1179 * @param boolean Editor mode (use true for minimal editor) 
     1180 */ 
     1181function rcube_html_editor($mode='') 
     1182{ 
     1183  global $OUTPUT, $CONFIG; 
     1184 
     1185  $lang = $tinylang = strtolower(substr($_SESSION['language'], 0, 2)); 
     1186  if (!file_exists(INSTALL_PATH . 'program/js/tiny_mce/langs/'.$tinylang.'.js')) 
     1187    $tinylang = 'en'; 
     1188 
     1189  $OUTPUT->include_script('tiny_mce/tiny_mce.js'); 
     1190  $OUTPUT->include_script('editor.js'); 
     1191  $OUTPUT->add_script('rcmail_editor_init("$__skin_path", "'.JQ($tinylang).'", '.intval($CONFIG['enable_spellcheck']).', "'.$mode.'");'); 
     1192} 
     1193 
    11761194?> 
Note: See TracChangeset for help on using the changeset viewer.