File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -928,10 +928,12 @@ var plugin_formcreator = new function() {
928928 var questionId = questionKey ;
929929 questionId = parseInt ( questionKey . replace ( 'formcreator_field_' , '' ) ) ;
930930 if ( ! isNaN ( questionId ) ) {
931- // Workaround issue with tinymce input which may be 0px height
932- $ ( '#form-group-field-' + questionKey + ' iframe' )
933- . attr ( 'data-mce-style' , 'width: 100%; height: 148px; display: block;' )
934- . attr ( 'style' , 'width: 100%; height: 148px; display: block;' ) ;
931+ if ( tinymce . majorVersion < 5 ) {
932+ // Workaround issue with tinymce input which may be 0px height
933+ $ ( '#form-group-field-' + questionKey + ' iframe' )
934+ . attr ( 'data-mce-style' , 'width: 100%; height: 148px; display: block;' )
935+ . attr ( 'style' , 'width: 100%; height: 148px; display: block;' ) ;
936+ }
935937 if ( questionToShow [ questionKey ] ) {
936938 $ ( '#plugin_formcreator_form.plugin_formcreator_form [data-itemtype = "PluginFormcreatorQuestion"][data-id="' + questionKey + '"]' ) . removeAttr ( 'hidden' , '' ) ;
937939 } else {
You can’t perform that action at this time.
0 commit comments