Maciej Gołaszewski пре 6 година
родитељ
комит
66ba078a6b
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      packages/ckeditor5-mention/src/mentionediting.js

+ 5 - 0
packages/ckeditor5-mention/src/mentionediting.js

@@ -172,6 +172,11 @@ function removePartialMentionPostFixer( writer, doc ) {
 	return wasChanged;
 }
 
+// Checks if node has correct mention attribute if present.
+// Returns false if node is text and has mention attribute and its text does not match expected mention text.
+//
+// @param {module:engine/model/node~Node} node a node to check
+// @returns {Boolean}
 function checkMentionAttributeOnNode( node ) {
 	if ( !node || !node.is( 'text' ) || !node.hasAttribute( 'mention' ) ) {
 		return true;