瀏覽代碼

Removed optional parameter.

Oskar Wróbel 8 年之前
父節點
當前提交
a92375a446
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-image/src/imagecaption/imagecaptionengine.js

+ 1 - 1
packages/ckeditor5-image/src/imagecaption/imagecaptionengine.js

@@ -174,7 +174,7 @@ function insertMissingModelCaptionElement( evt, changeType, data, batch ) {
 				// Make sure that the image does not have caption already.
 				// https://github.com/ckeditor/ckeditor5-image/issues/78
 				if ( !getCaptionFromImage( item ) ) {
-					batch.appendElement( 'caption', null, item );
+					batch.appendElement( 'caption', item );
 				}
 			} );
 		}