Explorar o código

Update code to the latest engine API.

Maciej Gołaszewski %!s(int64=7) %!d(string=hai) anos
pai
achega
d99ee155fa

+ 1 - 1
packages/ckeditor5-engine/src/model/utils/selection-post-fixer.js

@@ -142,7 +142,7 @@ function tryFixingCollapsedRange( range, schema ) {
 		schema.isLimit( fixedPosition.nodeAfter );
 
 	if ( shouldTryHarderFix ) {
-		nearestSelectionRange = schema.getNearestSelectionRange( Position.createAt( fixedPosition.nodeAfter ) );
+		nearestSelectionRange = schema.getNearestSelectionRange( Position._createAt( fixedPosition.nodeAfter, 0 ) );
 		fixedPosition = nearestSelectionRange.start;
 	}