From 728b165720af087e032e9552e0388ee821798b16 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 1 Apr 2015 07:34:02 +0000 Subject: [PATCH] Fix mail compose not getting in focus on body when using html --- mail/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mail/js/app.js b/mail/js/app.js index d54a0e7659..56c1dc4385 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -240,7 +240,9 @@ app.classes.mail = AppJS.extend( } else { - this.et2.getWidgetById('mail_htmltext').ckeditor.focus(); + this.et2.getWidgetById('mail_htmltext').ckeditor.on('instanceReady', function(e) { + this.focus(); + }); } } else if(to)