Changeset 1060 in subversion


Ignore:
Timestamp:
Feb 12, 2008 10:31:05 PM (5 years ago)
Author:
estadtherr
Message:

fix switching between HTML/plain composing (#1484752)

Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r1059 r1060  
    442008/02/12 (estadtherr) 
    55---------- 
     6- fix switching between HTML/plain composing (#1484752)  
    67- condense TinyMCE toolbar down to one line, removing table buttons (#1484747) 
    78- fix image removal in message display when message HTML includes JS event handlers 
  • trunk/roundcubemail/program/js/editor.js

    r1059 r1060  
    6464 
    6565  var htmlFlag = document.getElementsByName('_is_html')[0]; 
    66   var currentEditor = htmlFlag.value; 
     66  var isHtml = htmlFlag.value; 
    6767 
    68   if (selectedEditor == currentEditor) 
     68  if (((selectedEditor == 'plain') && (isHtml == "0")) || 
     69      ((selectedEditor == 'html') && (isHtml == "1"))) 
    6970    { 
    7071    return; 
Note: See TracChangeset for help on using the changeset viewer.