Преглед изворни кода

Using 'srcset' attribute instead of 'responsive'.

Szymon Kupś пре 8 година
родитељ
комит
0889cf282b
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      packages/ckeditor5-upload/src/imageuploadengine.js

+ 2 - 2
packages/ckeditor5-upload/src/imageuploadengine.js

@@ -158,8 +158,8 @@ export default class ImageUploadEngine extends Plugin {
 						.join( ', ' );
 
 					if ( srcsetAttribute != '' ) {
-						doc.batch( 'transparent' ).setAttribute( imageElement, 'responsive', {
-							srcset: srcsetAttribute,
+						doc.batch( 'transparent' ).setAttribute( imageElement, 'srcset', {
+							data: srcsetAttribute,
 							width: maxWidth
 						} );
 					}