8
0
Maciej Bukowski 7 лет назад
Родитель
Сommit
7f2abb9110
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      packages/ckeditor5-engine/src/model/writer.js

+ 4 - 3
packages/ckeditor5-engine/src/model/writer.js

@@ -794,9 +794,10 @@ export default class Writer {
 	 * {@link module:engine/model/markercollection~Marker marker class description} to learn about the difference between
 	 * markers managed by operations and not-managed by operations.
 	 *
-	 * The `options.affectData` parameter, which defaults to `true`, allows you to create marker, that does not affects the data model.
-	 * It impacts the performance, because changes in markers with set `options.affectData:false` do not cause firing the
-	 * {@link module:engine/model/document~Document#event:change:data `change:data`} event.
+	 * The `options.affectData` parameter, which defaults to `false`, allows you to create a marker, that affects the data.
+	 * When set to true it fires the {@link module:engine/model/document~Document#event:change:data `change:data`} event.
+	 * When set to false it fires the {@link module:engine/model/document~Document#event:change `change`} event. the `affectsData` property
+	 * should be true when the marker change changes the data returned by {@link module:core/editor/editor~Editor#getData} method.
 	 *
 	 * Create marker directly base on marker's name:
 	 *