Code Duplication    Length = 16-21 lines in 2 locations

styles/all/theme/vendor/tinymce/plugins/media/plugin.js 1 location

@@ 880-900 (lines=21) @@
877
			advancedFormItems.push({name: 'poster', type: 'filepicker', filetype: 'image', size: 40, label: 'Poster'});
878
		}
879
880
		if (editor.settings.media_dimensions !== false) {
881
			generalFormItems.push({
882
				type: 'container',
883
				label: 'Dimensions',
884
				layout: 'flex',
885
				align: 'center',
886
				spacing: 5,
887
				items: [
888
					{
889
						name: 'width', type: 'textbox', maxLength: 5, size: 5,
890
						onchange: recalcSize, ariaLabel: 'Width'
891
					},
892
					{type: 'label', text: 'x'},
893
					{
894
						name: 'height', type: 'textbox', maxLength: 5, size: 5,
895
						onchange: recalcSize, ariaLabel: 'Height'
896
					},
897
					{name: 'constrain', type: 'checkbox', checked: true, text: 'Constrain proportions'}
898
				]
899
			});
900
		}
901
902
		data = getData(editor);
903

styles/all/theme/vendor/tinymce/plugins/image/plugin.js 1 location

@@ 392-407 (lines=16) @@
389
			generalFormItems.push({name: 'title', type: 'textbox', label: 'Image Title'});
390
		}
391
392
		if (imageDimensions) {
393
			generalFormItems.push({
394
				type: 'container',
395
				label: 'Dimensions',
396
				layout: 'flex',
397
				direction: 'row',
398
				align: 'center',
399
				spacing: 5,
400
				items: [
401
					{name: 'width', type: 'textbox', maxLength: 5, size: 3, onchange: recalcSize, ariaLabel: 'Width'},
402
					{type: 'label', text: 'x'},
403
					{name: 'height', type: 'textbox', maxLength: 5, size: 3, onchange: recalcSize, ariaLabel: 'Height'},
404
					{name: 'constrain', type: 'checkbox', checked: true, text: 'Constrain proportions'}
405
				]
406
			});
407
		}
408
409
		generalFormItems.push(classListCtrl);
410