Ver Fonte

Docs improvements.

Oskar Wróbel há 6 anos atrás
pai
commit
47e3a3c240

+ 1 - 0
packages/ckeditor5-engine/src/model/markercollection.js

@@ -171,6 +171,7 @@ export default class MarkerCollection {
 		}
 
 		const range = marker.getRange();
+
 		this.fire( 'update:' + markerName, marker, range, range, marker.managedUsingOperations, marker.affectsData );
 	}
 

+ 2 - 2
packages/ckeditor5-engine/src/model/writer.js

@@ -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.
 	 *