From 85e60ada1558798669b29225aa530b4ba9310cdc Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Sun, 10 Nov 2013 14:04:33 +0100 Subject: First version of the local storage compose data saving feature; some behavioral improvements and encrytion are still to be added --- skins/larry/ui.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'skins') 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); }); -- cgit v1.2.3