8
0
Piotrek Koszuliński 7 лет назад
Родитель
Сommit
47a9c7a9ea

+ 4 - 2
packages/ckeditor5-engine/src/model/schema.js

@@ -575,7 +575,8 @@ export default class Schema {
 	 * Returns the lowest {@link module:engine/model/schema~Schema#isLimit limit element} containing the entire
 	 * selection or the root otherwise.
 	 *
-	 * @param {module:engine/model/selection~Selection} selection Selection which returns the common ancestor.
+	 * @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection} selection
+	 * Selection which returns the common ancestor.
 	 * @returns {module:engine/model/element~Element}
 	 */
 	getLimitElement( selection ) {
@@ -609,7 +610,8 @@ export default class Schema {
 	 * * if the selection is collapsed, then checks if on the selection position there's a text with the
 	 * specified attribute allowed.
 	 *
-	 * @param {module:engine/model/selection~Selection} selection Selection which will be checked.
+	 * @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection} selection
+	 * Selection which will be checked.
 	 * @param {String} attribute The name of the attribute to check.
 	 * @returns {Boolean}
 	 */

+ 2 - 1
packages/ckeditor5-engine/src/model/selection.js

@@ -193,7 +193,8 @@ export default class Selection {
 	 * Checks whether this selection is equal to given selection. Selections are equal if they have same directions,
 	 * same number of ranges and all ranges from one selection equal to a range from other selection.
 	 *
-	 * @param {module:engine/model/selection~Selection} otherSelection Selection to compare with.
+	 * @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection} otherSelection
+	 * Selection to compare with.
 	 * @returns {Boolean} `true` if selections are equal, `false` otherwise.
 	 */
 	isEqual( otherSelection ) {