From 5b01269378d56720eebc2ecec11095fb5bee01d2 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 28 Apr 2015 15:28:25 +0000 Subject: [PATCH] Make sure there is jquery object on ckeditor container --- etemplate/js/et2_widget_htmlarea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_htmlarea.js b/etemplate/js/et2_widget_htmlarea.js index e66322f4fa..3832d63c29 100644 --- a/etemplate/js/et2_widget_htmlarea.js +++ b/etemplate/js/et2_widget_htmlarea.js @@ -272,7 +272,7 @@ var et2_htmlarea = et2_inputWidget.extend([et2_IResizeable], if (this.ckeditor) // CKEDITOR HTML { var h = 0; - if (this.ckeditor.container.$.clientHeight > 0) + if (typeof this.ckeditor.container.$ != 'undefined' && this.ckeditor.container.$.clientHeight > 0) { h = (this.ckeditor.container.$.clientHeight + _height) > 0 ? this.ckeditor.container.$.clientHeight + _height: this.ckeditor.config.height; }