Browse Source

Remove paste from office dependency.

Maciej Gołaszewski 6 years ago
parent
commit
b667525e3c

+ 8 - 1
packages/ckeditor5-restricted-editing/tests/restrictededitingmodeediting.js

@@ -17,7 +17,6 @@ import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
 
 import RestrictedEditingModeEditing from './../src/restrictededitingmodeediting';
 import RestrictedEditingModeNavigationCommand from '../src/restrictededitingmodenavigationcommand';
-import { createDataTransfer } from '@ckeditor/ckeditor5-paste-from-office/tests/_utils/utils';
 
 describe( 'RestrictedEditingModeEditing', () => {
 	let editor, model;
@@ -1140,4 +1139,12 @@ describe( 'RestrictedEditingModeEditing', () => {
 			} );
 		} );
 	}
+
+	function createDataTransfer( data ) {
+		return {
+			getData( type ) {
+				return data[ type ];
+			}
+		};
+	}
 } );