8
0
Maciej Gołaszewski 5 лет назад
Родитель
Сommit
118262a0d1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/ckeditor5-link/src/linkediting.js

+ 1 - 1
packages/ckeditor5-link/src/linkediting.js

@@ -527,7 +527,7 @@ function shouldCopyAttributes( model ) {
 	// `nodeBefore` = the position is at the end of the link element.
 	// `nodeBefore` = the position is at the end of the link element.
 	const nodeAtLastPosition = lastPosition.textNode || lastPosition.nodeBefore;
 	const nodeAtLastPosition = lastPosition.textNode || lastPosition.nodeBefore;
 
 
-	// Both nodes must indicate the same node in the model tree.
+	// If both references the same node selection contains a single text node.
 	if ( nodeAtFirstPosition === nodeAtLastPosition ) {
 	if ( nodeAtFirstPosition === nodeAtLastPosition ) {
 		return true;
 		return true;
 	}
 	}