From 3f1c262bc29ff51636593ed754d0b7063a8a5142 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Fri, 3 Jul 2020 13:35:35 +0200 Subject: [PATCH] fix(textareafield): tinymce may be 0px height Signed-off-by: Thierry Bugier --- js/scripts.js.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/scripts.js.php b/js/scripts.js.php index 7693d0b35..6f5c81018 100644 --- a/js/scripts.js.php +++ b/js/scripts.js.php @@ -646,6 +646,10 @@ function formcreatorShowFields(form) { questionId = parseInt(questionKey.replace('formcreator_field_', '')); if (!isNaN(questionId)) { if (questionToShow[questionKey]) { + // Workaround issue with tinymce input which may be 0px height + $('#form-group-field-' + questionKey + ' iframe') + .attr('data-mce-style', 'width: 100%; height: 148px; display: block;') + .attr('style', 'width: 100%; height: 148px; display: block;'); $('#form-group-field-' + questionKey).removeAttr('hidden'); i++; $('#form-group-field-' + questionKey).removeClass('line' + (i+1) % 2);