Przeglądaj źródła

Docs: Merged dataprocessor.js and dataprocessor.jsdoc

Piotr Jasiun 9 lat temu
rodzic
commit
afd4fdbd3a

+ 0 - 28
packages/ckeditor5-engine/src/dataprocessor/dataprocessor.js

@@ -1,28 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-/**
- * DataProcessor interface. It should be implemented by actual DataProcessors.
- * Each data processor implements a certain format of the data. E.g. `MarkdownDataProcessor` will convert the data
- * (Markdown string) to a DocumentFragment and back.
- *
- * @interface engine.dataProcessor.DataProcessor
- */
-
-/**
- * Converts a DocumentFragment to data.
- *
- * @method engine.dataProcessor.DataProcessor#toData
- * @param {DocumentFragment} fragment DocumentFragment to be processed.
- * @returns {*}
- */
-
-/**
- * Converts data to a DocumentFragment.
- *
- * @method engine.dataProcessor.DataProcessor#toDom
- * @param {*} data Data to be processed.
- * @returns {DocumentFragment}
- */

+ 24 - 0
packages/ckeditor5-engine/src/dataprocessor/dataprocessor.jsdoc

@@ -6,3 +6,27 @@
 /**
  * @namespace engine.dataProcessor
  */
+
+/**
+ * DataProcessor interface. It should be implemented by actual DataProcessors.
+ * Each data processor implements a certain format of the data. E.g. `MarkdownDataProcessor` will convert the data
+ * (Markdown string) to a DocumentFragment and back.
+ *
+ * @interface engine.dataProcessor.DataProcessor
+ */
+
+/**
+ * Converts a DocumentFragment to data.
+ *
+ * @method engine.dataProcessor.DataProcessor#toData
+ * @param {DocumentFragment} fragment DocumentFragment to be processed.
+ * @returns {*}
+ */
+
+/**
+ * Converts data to a DocumentFragment.
+ *
+ * @method engine.dataProcessor.DataProcessor#toDom
+ * @param {*} data Data to be processed.
+ * @returns {DocumentFragment}
+ */