Skip to content

Commit

Permalink
fix(textareafield): tinymce may be 0px height
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jul 3, 2020
1 parent 3f998d8 commit aceec1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/scripts.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,10 @@ function buildTiles(list) {
var questionId = questionKey;
questionId = parseInt(questionKey.replace('formcreator_field_', ''));
if (!isNaN(questionId)) {
// 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;');
if (questionToShow[questionKey]) {
$('#plugin_formcreator_form.plugin_formcreator_form [data-itemtype = "PluginFormcreatorQuestion"][data-id="' + questionKey + '"]').removeAttr('hidden', '');
} else {
Expand Down

0 comments on commit aceec1b

Please sign in to comment.