소스 검색

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

Maciej Gołaszewski 5 년 전
부모
커밋
a50c039296
2개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  1. 0 3
      packages/ckeditor5-table/src/commands/removecolumncommand.js
  2. 0 3
      packages/ckeditor5-table/src/commands/removerowcommand.js

+ 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-- ) {