8
0
Просмотр исходного кода

Docs: fixes in LivePosition, LiveRange and LiveSelection.

Szymon Cofalik 9 лет назад
Родитель
Сommit
0a80ab357d

+ 1 - 1
packages/ckeditor5-engine/src/model/liveposition.js

@@ -116,7 +116,7 @@ export default class LivePosition extends Position {
 	 * Fired when `LivePosition` instance is changed due to changes on {@link engine.model.Document}.
 	 *
 	 * @event engine.model.LivePosition#change
-	 * @param {Position} oldPosition Position equal to this live position before it got changed.
+	 * @param {engine.model.Position} oldPosition Position equal to this live position before it got changed.
 	 */
 }
 

+ 1 - 1
packages/ckeditor5-engine/src/model/liverange.js

@@ -77,7 +77,7 @@ export default class LiveRange extends Range {
 	 * Fired when `LiveRange` instance is changed due to changes on {@link engine.model.Document}.
 	 *
 	 * @event engine.model.LiveRange#change
-	 * @param {Range} oldRange Range with start and end position equal to start and end position of this live range
+	 * @param {engine.model.Range} oldRange Range with start and end position equal to start and end position of this live range
 	 * before it got changed.
 	 */
 }

+ 3 - 3
packages/ckeditor5-engine/src/model/liveselection.js

@@ -207,7 +207,7 @@ export default class LiveSelection extends Selection {
 	}
 
 	/**
-	 * Removes all attributes from selection and set attributes according to surrounding nodes.
+	 * Removes all attributes from the selection and sets attributes according to the surrounding nodes.
 	 */
 	refreshAttributes() {
 		this._updateAttributes( true );
@@ -247,7 +247,7 @@ export default class LiveSelection extends Selection {
 	}
 
 	/**
-	 * Prepares given range to be added to selection. Checks if it is corret,  converts it to {@link engine.model.LiveRange LiveRange}
+	 * Prepares given range to be added to selection. Checks if it is correct, converts it to {@link engine.model.LiveRange LiveRange}
 	 * and sets listeners listening to the range's change event.
 	 *
 	 * @private
@@ -593,7 +593,7 @@ export default class LiveSelection extends Selection {
 	 * Fixes a selection range after it ends up in graveyard root.
 	 *
 	 * @private
-	 * @param {engine.model.Range} gyRange The range added in selection, that ended up in graveyard root.
+	 * @param {engine.model.LiveRange} gyRange The range added in selection, that ended up in graveyard root.
 	 * @param {engine.model.Range} oldRange The state of that range before it was added to graveyard root.
 	 */
 	_fixGraveyardSelection( gyRange, oldRange ) {