8
0
فهرست منبع

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
 						} );
 					}