Apply editable_height independent of the height attribute

This commit is contained in:
Hadi Nategh 2019-08-02 10:21:29 +02:00
parent 06ffd20aa8
commit a7bfd5c871

View File

@ -242,7 +242,7 @@ var et2_htmlarea = (function(){ "use strict"; return et2_editableWidget.extend([
{ {
this.htmlNode = jQuery(document.createElement("textarea")) this.htmlNode = jQuery(document.createElement("textarea"))
.val(value); .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)); this.htmlNode.css('height', (this.options.editable_height ? this.options.editable_height : this.options.height));
} }