Changeset 3334 in subversion
- Timestamp:
- Mar 6, 2010 1:59:25 PM (3 years ago)
- Location:
- trunk/roundcubemail/program
- Files:
-
- 3 edited
-
js/editor.js (modified) (2 diffs)
-
steps/mail/compose.inc (modified) (1 diff)
-
steps/settings/edit_identity.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/editor.js
r3182 r3334 84 84 85 85 // switch html/plain mode 86 function rcmail_toggle_editor( ishtml, textAreaId, flagElement)86 function rcmail_toggle_editor(select, textAreaId, flagElement) 87 87 { 88 88 var composeElement = document.getElementById(textAreaId); 89 var flag; 89 var flag, ishtml; 90 91 if (select.tagName != 'SELECT') 92 ishtml = select.checked; 93 else 94 ishtml = select.value == 'html'; 90 95 91 96 if (ishtml) … … 101 106 else 102 107 { 103 if (!confirm(rcmail.get_label('editorwarning')))104 return false;105 106 108 var thisMCE = tinyMCE.get(textAreaId); 107 109 var existingHtml = thisMCE.getContent(); 108 rcmail.html2plain(existingHtml, textAreaId); 110 111 if (existingHtml) { 112 if (!confirm(rcmail.get_label('editorwarning'))) { 113 if (select.tagName == 'SELECT') 114 select.value = 'html'; 115 return false; 116 } 117 118 rcmail.html2plain(existingHtml, textAreaId); 119 } 120 109 121 tinyMCE.execCommand('mceRemoveControl', true, textAreaId); 110 122 rcmail.display_spellcheck_controls(true); -
trunk/roundcubemail/program/steps/mail/compose.inc
r3316 r3334 977 977 $attrib['name'] = 'editorSelect'; 978 978 979 $attrib['onchange'] = "return rcmail_toggle_editor(this .value=='html', '".$attrib['editorid']."', '_is_html')";979 $attrib['onchange'] = "return rcmail_toggle_editor(this, '".$attrib['editorid']."', '_is_html')"; 980 980 981 981 $select = new html_select($attrib); -
trunk/roundcubemail/program/steps/settings/edit_identity.inc
r2755 r3334 71 71 'bcc' => array('type' => 'text', 'size' => $i_size), 72 72 'signature' => array('type' => 'textarea', 'size' => $t_cols, 'rows' => $t_rows), 73 'html_signature'=>array('type' => 'checkbox', 'label' => 'htmlsignature', 'onclick' => 'return rcmail_toggle_editor(this .checked, \'rcmfd_signature\');'),73 'html_signature'=>array('type' => 'checkbox', 'label' => 'htmlsignature', 'onclick' => 'return rcmail_toggle_editor(this, \'rcmfd_signature\');'), 74 74 'standard' => array('type' => 'checkbox', 'label' => 'setdefault')); 75 75
Note: See TracChangeset
for help on using the changeset viewer.
