浏览代码

Docs: Improved two interfaces.

Piotrek Koszuliński 7 年之前
父节点
当前提交
45bce5c58e

+ 2 - 2
packages/ckeditor5-core/src/editor/utils/dataapimixin.js

@@ -32,8 +32,8 @@ const DataApiMixin = {
 export default DataApiMixin;
 
 /**
- * Mixin provides methods for setting and getting data to/from editor main root element of the model tree
- * using {@link module:core/editor/editor~Editor#data data pipeline}.
+ * Interface for setting and getting data to/from the editor's main root element
+ * using the {@link module:core/editor/editor~Editor#data data pipeline}.
  *
  * @interface DataApi
  */

+ 4 - 1
packages/ckeditor5-core/src/editor/utils/elementapimixin.js

@@ -27,7 +27,10 @@ const ElementApiMixin = {
 export default ElementApiMixin;
 
 /**
- * Mixin provides method for setting and getting data from/to element on which editor has been initialized.
+ * Interface describing an editor which replaced a DOM element (was "initialized on an element").
+ *
+ * Such an editor should provide a method to
+ * {@link module:core/editor/utils/elementapimixin~ElementApi#updateElement update the replaced element with the current data}.
  *
  * @interface ElementApi
  */