8
0
فهرست منبع

Remove temporary fixes for model-selection-range-intersects error.

Maciej Gołaszewski 5 سال پیش
والد
کامیت
a50c039296

+ 0 - 3
packages/ckeditor5-table/src/commands/removecolumncommand.js

@@ -66,9 +66,6 @@ export default class RemoveColumnCommand extends Command {
 		const cellToFocus = getCellToFocus( tableMap, firstCell, lastCell, removedColumnIndexes );
 
 		this.editor.model.change( writer => {
-			// A temporary workaround to avoid the "model-selection-range-intersects" error.
-			writer.setSelection( writer.createRangeOn( table ) );
-
 			adjustHeadingColumns( table, removedColumnIndexes, writer );
 
 			for (

+ 0 - 3
packages/ckeditor5-table/src/commands/removerowcommand.js

@@ -62,9 +62,6 @@ export default class RemoveRowCommand extends Command {
 		const columnIndexToFocus = this.editor.plugins.get( 'TableUtils' ).getCellLocation( firstCell ).column;
 
 		model.change( writer => {
-			// This prevents the "model-selection-range-intersects" error, caused by removing row selected cells.
-			writer.setSelection( writer.createSelection( table, 'on' ) );
-
 			let cellToFocus;
 
 			for ( let i = removedRowIndexes.last; i >= removedRowIndexes.first; i-- ) {