Explorar el Código

Aligned manual tests with engine chamges.

Oskar Wróbel hace 8 años
padre
commit
dbfadc2a82
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      packages/ckeditor5-clipboard/tests/manual/dropping.js

+ 2 - 2
packages/ckeditor5-clipboard/tests/manual/dropping.js

@@ -33,10 +33,10 @@ ClassicEditor
 			data.preventDefault();
 			evt.stop();
 
-			editor.document.enqueueChanges( () => {
+			editor.model.change( () => {
 				const insertAtSelection = new Selection( [ editor.editing.mapper.toModelRange( data.dropRange ) ] );
 				editor.data.insertContent( new Text( '@' ), insertAtSelection );
-				editor.document.selection.setTo( insertAtSelection );
+				editor.model.document.selection.setTo( insertAtSelection );
 			} );
 		} );