Procházet zdrojové kódy

Added docs for root property to the Operation class.

Oskar Wróbel před 8 roky
rodič
revize
d375257eae

+ 9 - 0
packages/ckeditor5-engine/src/model/operation/operation.js

@@ -45,6 +45,15 @@ export default class Operation {
 		 * @member {module:engine/model/delta/delta~Delta} #delta
 		 */
 
+		/**
+		 * Root within operation is applied. It might be {@link module:engine/model/rootelement~RootElement RootElement}
+		 * when operation is applied on {@link module:engine/model/document~Document Document} or any
+		 * {module:engine/model/item~Item} when operation is applied on detached node.
+		 *
+		 * @readonly
+		 * @member {module:engine/model/item~Item} #root
+		 */
+
 		/**
 		 * Creates and returns an operation that has the same parameters as this operation.
 		 *