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/steps/mail/compose.inc

    r2035 r2040  
    427427  } 
    428428 
    429   $lang = $tinylang = strtolower(substr($_SESSION['language'], 0, 2)); 
    430   if (!file_exists(INSTALL_PATH . 'program/js/tiny_mce/langs/'.$tinylang.'.js')) 
    431     $tinylang = 'en';  
    432  
    433   $OUTPUT->include_script('tiny_mce/tiny_mce.js'); 
    434   $OUTPUT->include_script("editor.js"); 
    435   $OUTPUT->add_script('rcmail_editor_init("$__skin_path", "'.JQ($tinylang).'", '.intval($CONFIG['enable_spellcheck']).');'); 
     429  rcube_html_editor(); 
    436430 
    437431  $out = $form_start ? "$form_start\n" : ''; 
     
    856850  $chosenvalue = $useHtml ? 'html' : 'plain'; 
    857851  $radio = new html_radiobutton(array('name' => '_editorSelect', 
    858     'onclick' => "return rcmail.toggle_editor(this.value=='html', '$editorid', '_is_html')")); 
     852    'onclick' => "return rcmail_toggle_editor(this.value=='html', '$editorid', '_is_html')")); 
    859853 
    860854  foreach ($choices as $value => $text) 
Note: See TracChangeset for help on using the changeset viewer.