|
@@ -16,6 +16,7 @@ import EasyImage from '@ckeditor/ckeditor5-easy-image/src/easyimage';
|
|
|
import PasteFromOffice from '../../src/pastefromoffice';
|
|
import PasteFromOffice from '../../src/pastefromoffice';
|
|
|
|
|
|
|
|
import { stringify as stringifyView } from '@ckeditor/ckeditor5-engine/src/dev-utils/view';
|
|
import { stringify as stringifyView } from '@ckeditor/ckeditor5-engine/src/dev-utils/view';
|
|
|
|
|
+import { getData as getModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
|
|
|
|
|
|
|
|
import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
|
|
import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
|
|
|
|
|
|
|
@@ -32,6 +33,8 @@ ClassicEditor
|
|
|
} )
|
|
} )
|
|
|
.then( editor => {
|
|
.then( editor => {
|
|
|
window.editor = editor;
|
|
window.editor = editor;
|
|
|
|
|
+ window.getModelData = getModelData;
|
|
|
|
|
+
|
|
|
const clipboard = editor.plugins.get( 'Clipboard' );
|
|
const clipboard = editor.plugins.get( 'Clipboard' );
|
|
|
|
|
|
|
|
editor.editing.view.document.on( 'paste', ( evt, data ) => {
|
|
editor.editing.view.document.on( 'paste', ( evt, data ) => {
|