Sfoglia il codice sorgente

Fix if statement that disables non-rectangular selection.

Maciej Gołaszewski 5 anni fa
parent
commit
432cc1b418
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/ckeditor5-table/src/tableclipboard.js

+ 1 - 1
packages/ckeditor5-table/src/tableclipboard.js

@@ -125,7 +125,7 @@ export default class TableClipboard extends Plugin {
 			const contentTable = findAncestor( 'table', selectedTableCells[ 0 ] );
 
 			// TODO: Temporally block non-rectangular selection.
-			if ( isSelectionRectangular( this.editor.model.document.selection, tableUtils ) ) {
+			if ( !isSelectionRectangular( this.editor.model.document.selection, tableUtils ) ) {
 				// @if CK_DEBUG // console.log( 'Selection is not rectangular (non-mergeable) - pasting disabled.' );
 
 				return;