Skip to content

Commit

Permalink
Merge pull request #9553 from fedemp/patch-10
Browse files Browse the repository at this point in the history
Docs (engine): Fixed the invalid return type for the `model.LivePosition#fromPosition()` function.
  • Loading branch information
pomek authored Apr 23, 2021
2 parents 41bf7a3 + 6884b7b commit d99f28d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ckeditor5-engine/src/model/liveposition.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class LivePosition extends Position {
*
* @param {module:engine/model/position~Position} position
* @param {module:engine/model/position~PositionStickiness} [stickiness]
* @returns {module:engine/model/position~Position}
* @returns {module:engine/model/liveposition~LivePosition}
*/
static fromPosition( position, stickiness ) {
return new this( position.root, position.path.slice(), stickiness ? stickiness : position.stickiness );
Expand Down

0 comments on commit d99f28d

Please sign in to comment.