8
0
Просмотр исходного кода

Aligned code to the API changes in engine.

Maciej Bukowski 8 лет назад
Родитель
Сommit
7dbc5feeca
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/ckeditor5-upload/src/imageuploadcommand.js

+ 1 - 1
packages/ckeditor5-upload/src/imageuploadcommand.js

@@ -57,7 +57,7 @@ export default class ImageUploadCommand extends Command {
 				insertAtSelection = doc.selection;
 			}
 
-			editor.data.insertContent( imageElement, insertAtSelection );
+			editor.model.insertContent( imageElement, insertAtSelection );
 
 			// Inserting an image might've failed due to schema regulations.
 			if ( imageElement.parent ) {