From 545531ba99d90f85e69d5546dc621e9ff78c255e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 5 Sep 2014 09:50:30 +0000 Subject: [PATCH] Make sure ckeditor is loaded before calling resizehandler in mail compose --- 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 b63e5f237c..5695d7c4ea 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -200,7 +200,9 @@ app.classes.mail = AppJS.extend( } }); /*Trigger compose_resizeHandler after the CKEditor is fully loaded*/ - jQuery('#mail-compose').load ('load', function() {that.compose_resizeHandler();}); + jQuery('#mail-compose').on ('load',function() { + window.setTimeout(function(){that.compose_resizeHandler()}, 100); + }); this.compose_fieldExpander();