Explorar el Código

Update src/mentionediting.js

Co-Authored-By: jodator <jodator@gmail.com>
Szymon Cofalik hace 6 años
padre
commit
caf742e03f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/ckeditor5-mention/src/mentionediting.js

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

@@ -165,7 +165,7 @@ function removePartialMentionPostFixer( writer, doc, schema ) {
 			checkAndFix( position.nodeAfter );
 			checkAndFix( position.nodeAfter );
 		}
 		}
 
 
-		// Check text nodes on inserted elements (might occur when splitting paragraph on enter key).
+		// Check text nodes in inserted elements (might occur when splitting paragraph or pasting content).
 		if ( change.name != '$text' && change.type == 'insert' && schema.checkChild( change.name, '$text' ) ) {
 		if ( change.name != '$text' && change.type == 'insert' && schema.checkChild( change.name, '$text' ) ) {
 			const insertedNode = position.nodeAfter;
 			const insertedNode = position.nodeAfter;