File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -928,10 +928,12 @@ var plugin_formcreator = new function() {
928
928
var questionId = questionKey ;
929
929
questionId = parseInt ( questionKey . replace ( 'formcreator_field_' , '' ) ) ;
930
930
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
+ }
935
937
if ( questionToShow [ questionKey ] ) {
936
938
$ ( '#plugin_formcreator_form.plugin_formcreator_form [data-itemtype = "PluginFormcreatorQuestion"][data-id="' + questionKey + '"]' ) . removeAttr ( 'hidden' , '' ) ;
937
939
} else {
You can’t perform that action at this time.
0 commit comments