Piotrek Koszuliński 8 роки тому
батько
коміт
83a71e4f99
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      packages/ckeditor5-engine/src/model/selection.js

+ 3 - 0
packages/ckeditor5-engine/src/model/selection.js

@@ -629,6 +629,9 @@ export default class Selection {
 	 * at a position {@link module:engine/model/position~Position#isTouching touching} the element's start and ends at position
 	 * touching the element's end.
 	 *
+	 * By default, this method will check whether the entire content of the selection's current root is selected.
+	 * Useful to check if e.g. the user has just pressed <kbd>Ctrl</kbd> + <kbd>A</kbd>.
+	 *
 	 * @param {module:engine/model/element~Element} [element=this.anchor.root]
 	 * @returns {Boolean}
 	 */