8
0
Pārlūkot izejas kodu

Docs: Reworded in-code comment.

Szymon Cofalik 7 gadi atpakaļ
vecāks
revīzija
ca4dfddf77
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      packages/ckeditor5-typing/src/input.js

+ 2 - 2
packages/ckeditor5-typing/src/input.js

@@ -211,8 +211,8 @@ class MutationHandler {
 		const modelFromDomChildren = Array.from( modelFromCurrentDom.getChildren() );
 		const currentModelChildren = Array.from( currentModel.getChildren() );
 
-		// Remove the last `<softBreak>` from the end of the `modelFromDomChildren` if there is no `<softBreak>` current model.
-		// If that happened, it means that this is a bogus br added by a browser.
+		// Remove the last `<softBreak>` from the end of `modelFromDomChildren` if there is no `<softBreak>` in current model.
+		// If the described scenario happened, it means that this is a bogus `<br />` added by a browser.
 		const lastDomChild = modelFromDomChildren[ modelFromDomChildren.length - 1 ];
 		const lastCurrentChild = currentModelChildren[ currentModelChildren.length - 1 ];