Kaynağa Gözat

Aligned selection method names to https://github.com/ckeditor/ckeditor5-engine/pull/1075.

Maciej Bukowski 8 yıl önce
ebeveyn
işleme
87b4ee7b47
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      packages/ckeditor5-enter/src/entercommand.js

+ 2 - 2
packages/ckeditor5-enter/src/entercommand.js

@@ -75,7 +75,7 @@ function enterBlock( dataController, batch, selection, schema ) {
 			//
 			// <h>x[x</h><p>y]y<p>	-> <h>x^</h><p>y</p>	-> <h>x</h><p>^y</p>
 			else {
-				selection.collapse( endElement );
+				selection.setCollapsedAt( endElement );
 			}
 		}
 	}
@@ -94,5 +94,5 @@ function splitBlock( batch, selection, splitPos ) {
 		batch.split( splitPos );
 	}
 
-	selection.collapse( splitPos.parent.nextSibling );
+	selection.setCollapsedAt( splitPos.parent.nextSibling );
 }