Make sure ckeditor is loaded before calling resizehandler in mail compose

This commit is contained in:
Hadi Nategh 2014-09-05 09:50:30 +00:00
parent 951768885a
commit 545531ba99

View File

@ -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();