Explorar el Código

Added comment with explanation. [skip ci]

Kamil Piechaczek hace 8 años
padre
commit
20acc7aa2e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      packages/ckeditor5-engine/src/model/position.js

+ 1 - 0
packages/ckeditor5-engine/src/model/position.js

@@ -332,6 +332,7 @@ export default class Position {
 
 		const node = this.root.getNodeByPath( this.getCommonPath( position ) );
 
+		// Although paths can indicate a text node, text node is not an ancestor of a position.
 		if ( node.is( 'text' ) ) {
 			return node.parent;
 		}