diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-11-10 14:04:33 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-11-10 14:04:33 +0100 |
commit | 85e60ada1558798669b29225aa530b4ba9310cdc (patch) | |
tree | 55bb42e7f13552df60c4b5de0bfda9097032103f /skins/larry/ui.js | |
parent | e46d060a4ab4b2a901c3dd4a3909490a547284e1 (diff) |
First version of the local storage compose data saving feature; some behavioral improvements and encrytion are still to be added
Diffstat (limited to 'skins/larry/ui.js')
-rw-r--r-- | skins/larry/ui.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 660b18ff9..760cc7a03 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -110,7 +110,11 @@ function rcube_mail_ui() }); } else if (rcmail.env.action == 'compose') { - rcmail.addEventListener('aftertoggle-editor', function(){ window.setTimeout(function(){ layout_composeview() }, 200); }); + rcmail.addEventListener('aftertoggle-editor', function(e){ + window.setTimeout(function(){ layout_composeview() }, 200); + if (e && e.mode) + $("select[name='editorSelector']").val(e.mode); + }); rcmail.addEventListener('aftersend-attachment', show_uploadform); rcmail.addEventListener('add-recipient', function(p){ show_header_row(p.field, true); }); |