浏览代码

Docs: Minor change.

Oskar Wróbel 7 年之前
父节点
当前提交
ef3b39e38e
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/ckeditor5-engine/src/controller/datacontroller.js

+ 4 - 0
packages/ckeditor5-engine/src/controller/datacontroller.js

@@ -178,6 +178,10 @@ export default class DataController {
 	 * This method also creates a batch with all the changes applied. If all you need is to parse data, use
 	 * the {@link #parse} method.
 	 *
+	 * **Note** This method is {@link module:utils/observablemixin~ObservableMixin#decorate decorated} which is
+	 * used by some plugins to change the behavior of this method. For example, the collaborative editing plugin changes
+	 * this method’s nature to asynchronous by returning a promise.
+	 *
 	 * @fires set
 	 * @param {String} data Input data.
 	 * @param {String} [rootName='main'] Root name.