From a7bfd5c87101d991ed539d427cb00d40a96b0a41 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 2 Aug 2019 10:21:29 +0200 Subject: [PATCH] Apply editable_height independent of the height attribute --- api/js/etemplate/et2_widget_htmlarea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_htmlarea.js b/api/js/etemplate/et2_widget_htmlarea.js index 024ab094aa..01db254b93 100644 --- a/api/js/etemplate/et2_widget_htmlarea.js +++ b/api/js/etemplate/et2_widget_htmlarea.js @@ -242,7 +242,7 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([ { this.htmlNode = jQuery(document.createElement("textarea")) .val(value); - if(this.options.height) + if(this.options.height || this.options.editable_height) { this.htmlNode.css('height', (this.options.editable_height ? this.options.editable_height : this.options.height)); }