|
|
@@ -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 );
|
|
|
} );
|
|
|
} );
|
|
|
|