From 198a075cf413e5e1ee0563cb7e4b0eb8d05a57cb Mon Sep 17 00:00:00 2001 From: Younn Olivier Date: Tue, 18 May 2021 07:28:25 +0000 Subject: [PATCH] [IMP] web_editor: add height option on html field It is possible to specify a height for the html field, instead of the default 380px. task-2458165 Part of https://github.com/odoo/odoo/pull/68221 --- addons/web_editor/static/src/js/backend/field_html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/backend/field_html.js b/addons/web_editor/static/src/js/backend/field_html.js index 4338a3c04f2..be431141baa 100644 --- a/addons/web_editor/static/src/js/backend/field_html.js +++ b/addons/web_editor/static/src/js/backend/field_html.js @@ -195,7 +195,7 @@ var FieldHtml = basic_fields.DebouncedField.extend(TranslatableFieldMixin, { linkForceNewWindow: true, tabsize: 0, - height: 380, + height: this.nodeOptions.height || 380, resizable: 'resizable' in this.nodeOptions ? this.nodeOptions.resizable : true, }); },