Explorar o código

Use range.getItem() instead of range.getWalker().

Maciej Gołaszewski %!s(int64=6) %!d(string=hai) anos
pai
achega
eb4fed4ad8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/ckeditor5-mention/src/mentionediting.js

+ 1 - 1
packages/ckeditor5-mention/src/mentionediting.js

@@ -166,7 +166,7 @@ function removePartialMentionPostFixer( writer, doc, schema ) {
 		if ( change.name != '$text' && change.type == 'insert' ) {
 			const insertedNode = position.nodeAfter;
 
-			for ( const { item } of writer.createRangeIn( insertedNode ).getWalker() ) {
+			for ( const item of writer.createRangeIn( insertedNode ).getItems() ) {
 				wasChanged = checkAndFix( item, writer ) || wasChanged;
 			}
 		}