Explorar el Código

Using 'srcset' attribute instead of 'responsive'.

Szymon Kupś hace 8 años
padre
commit
0889cf282b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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
 						} );
 					}