浏览代码

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( ', ' );
 						.join( ', ' );
 
 
 					if ( srcsetAttribute != '' ) {
 					if ( srcsetAttribute != '' ) {
-						doc.batch( 'transparent' ).setAttribute( imageElement, 'responsive', {
-							srcset: srcsetAttribute,
+						doc.batch( 'transparent' ).setAttribute( imageElement, 'srcset', {
+							data: srcsetAttribute,
 							width: maxWidth
 							width: maxWidth
 						} );
 						} );
 					}
 					}