|
@@ -8,24 +8,24 @@ import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtest
|
|
|
import { setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
|
|
import { setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
|
|
|
|
|
|
|
|
import TableEditing from '../src/tableediting';
|
|
import TableEditing from '../src/tableediting';
|
|
|
-import TableSelection from '../src/tableselection';
|
|
|
|
|
import { modelTable, viewTable } from './_utils/utils';
|
|
import { modelTable, viewTable } from './_utils/utils';
|
|
|
import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
|
|
import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
|
|
|
import ViewDocumentFragment from '@ckeditor/ckeditor5-engine/src/view/documentfragment';
|
|
import ViewDocumentFragment from '@ckeditor/ckeditor5-engine/src/view/documentfragment';
|
|
|
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 TableClipboard from '../src/tableclipboard';
|
|
|
|
|
|
|
|
-describe( 'table selection', () => {
|
|
|
|
|
|
|
+describe( 'table copy-paste', () => {
|
|
|
let editor, model, modelRoot, tableSelection, viewDocument;
|
|
let editor, model, modelRoot, tableSelection, viewDocument;
|
|
|
|
|
|
|
|
beforeEach( async () => {
|
|
beforeEach( async () => {
|
|
|
editor = await VirtualTestEditor.create( {
|
|
editor = await VirtualTestEditor.create( {
|
|
|
- plugins: [ TableEditing, TableSelection, Paragraph, Clipboard ]
|
|
|
|
|
|
|
+ plugins: [ TableEditing, TableClipboard, Paragraph, Clipboard ]
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
model = editor.model;
|
|
model = editor.model;
|
|
|
modelRoot = model.document.getRoot();
|
|
modelRoot = model.document.getRoot();
|
|
|
viewDocument = editor.editing.view.document;
|
|
viewDocument = editor.editing.view.document;
|
|
|
- tableSelection = editor.plugins.get( TableSelection );
|
|
|
|
|
|
|
+ tableSelection = editor.plugins.get( 'TableSelection' );
|
|
|
|
|
|
|
|
setModelData( model, modelTable( [
|
|
setModelData( model, modelTable( [
|
|
|
[ '00[]', '01', '02' ],
|
|
[ '00[]', '01', '02' ],
|