textAreaWidget.ckeditor is null not undefined

This commit is contained in:
Ralf Becker 2015-10-28 09:04:38 +00:00
parent 979a910e7f
commit cf332755e9

View File

@ -249,7 +249,7 @@ app.classes.mail = AppJS.extend(
});
/*Trigger compose_resizeHandler after the CKEditor is fully loaded*/
jQuery('#mail-compose').on ('load',function() {
if (textAreaWidget && typeof textAreaWidget.ckeditor != 'undefined')
if (textAreaWidget && textAreaWidget.ckeditor)
{
textAreaWidget.ckeditor.on('instanceReady', function(){that.compose_fieldExpander();});
}