Explorar o código

Aligned code to the API changes in engine.

Maciej Bukowski %!s(int64=8) %!d(string=hai) anos
pai
achega
7dbc5feeca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ) {