Преглед на файлове

Aligned manual tests with engine chamges.

Oskar Wróbel преди 8 години
родител
ревизия
dbfadc2a82
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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 );
 			} );
 		} );