|
|
@@ -58,10 +58,15 @@ export default class TableClipboard extends Plugin {
|
|
|
|
|
|
this.listenTo( editor.model, 'deleteContent', ( evt, args ) => {
|
|
|
const [ selection ] = args;
|
|
|
+
|
|
|
if ( this._tableSelection.hasMultiCellSelection && selection.is( 'documentSelection' ) ) {
|
|
|
evt.stop();
|
|
|
|
|
|
clearTableCellsContents( this.editor.model, this._tableSelection.getSelectedTableCells() );
|
|
|
+
|
|
|
+ editor.model.change( writer => {
|
|
|
+ writer.setSelection( Array.from( this._tableSelection.getSelectedTableCells() ).pop(), 0 );
|
|
|
+ } );
|
|
|
}
|
|
|
}, { priority: 'high' } );
|
|
|
}
|