Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Docs improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarwrobel committed Mar 12, 2019
1 parent 05521f3 commit 01d6585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/model/markercollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export default class MarkerCollection {
}

const range = marker.getRange();

this.fire( 'update:' + markerName, marker, range, range, marker.managedUsingOperations, marker.affectsData );
}

Expand Down
4 changes: 2 additions & 2 deletions src/model/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -939,14 +939,14 @@ export default class Writer {
}

/**
* Adds updates or refreshes a {@link module:engine/model/markercollection~Marker marker}. Marker is a named range, which tracks
* Adds, updates or refreshes a {@link module:engine/model/markercollection~Marker marker}. Marker is a named range, which tracks
* changes in the document and updates its range automatically, when model tree changes. Still, it is possible to change the
* marker's range directly using this method.
*
* As the first parameter you can set marker name or instance. If none of them is provided, new marker, with a unique
* name is created and returned.
*
* As the second parameter you can set the new marker data or leave this parameter as empty what will only refresh
* As the second parameter you can set the new marker data or leave this parameter as empty which will just refresh
* the marker by triggering downcast conversion for it. Refreshing the marker is useful when you want to change
* the marker {@link module:engine/view/element~Element view element} without changing any marker data.
*
Expand Down

0 comments on commit 01d6585

Please sign in to comment.