瀏覽代碼

Improved API docs.

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}
 	 */