diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-29 19:27:26 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-06-29 19:27:26 +0000 |
| commit | 825b67562553bd2bc96cbaf69ec5322b7da721a8 (patch) | |
| tree | 5e86df615b2cc1bbb3041edac8b64eeb093a9d40 /roundcubemail/program/js/editor.js | |
| parent | 942c342e6debd8114ab9ff8c704b771feb44a7fd (diff) | |
- Improved compose screen: resizable body and attachments list, vertical splitter, options menu
- Removed productname/version element, changed footer size to 20px
git-svn-id: https://svn.roundcube.net/trunk@3789 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/editor.js')
| -rw-r--r-- | roundcubemail/program/js/editor.js | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/roundcubemail/program/js/editor.js b/roundcubemail/program/js/editor.js index bd9c00cdc..a5e3af3d5 100644 --- a/roundcubemail/program/js/editor.js +++ b/roundcubemail/program/js/editor.js @@ -103,8 +103,7 @@ function rcmail_toggle_editor(select, textAreaId, flagElement) else ishtml = select.value == 'html'; - if (ishtml) - { + if (ishtml) { rcmail.display_spellcheck_controls(false); rcmail.plain2html(composeElement.value, textAreaId); @@ -113,25 +112,24 @@ function rcmail_toggle_editor(select, textAreaId, flagElement) setTimeout("rcmail_editor_tabindex();", 500); if (flagElement && (flag = rcube_find_object(flagElement))) flag.value = '1'; - } - else - { + } + else { var thisMCE = tinyMCE.get(textAreaId); var existingHtml = thisMCE.getContent(); if (existingHtml) { if (!confirm(rcmail.get_label('editorwarning'))) { if (select.tagName == 'SELECT') - select.value = 'html'; + select.value = 'html'; return false; - } + } rcmail.html2plain(existingHtml, textAreaId); - } + } tinyMCE.execCommand('mceRemoveControl', false, textAreaId); rcmail.display_spellcheck_controls(true); if (flagElement && (flag = rcube_find_object(flagElement))) flag.value = '0'; - } -}; + } +} |
