瀏覽代碼

Minor corrections.

Piotrek Koszuliński 9 年之前
父節點
當前提交
985876b5fe

+ 2 - 3
packages/ckeditor5-engine/src/dataprocessor/basichtmlwriter.js

@@ -6,9 +6,8 @@
 'use strict';
 
 /**
- * BasicHtmlWriter class.
- * Basic HTML writer, it uses native `innerHTML` property for basic conversion
- * from DocumentFragment to HTML string.
+ * Basic HTML writer, it uses the native `innerHTML` property for basic conversion
+ * from DocumentFragment to an HTML string.
  *
  * @class dataProcessor.BasicHtmlWriter
  * @implements dataProcessor.HtmlWriter

+ 3 - 3
packages/ckeditor5-engine/src/dataprocessor/dataprocessor.js

@@ -4,7 +4,7 @@
  */
 
 /**
- * DataProcessor interface. This should be implemented by actual DataProcessors.
+ * 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.
  *
@@ -12,7 +12,7 @@
  */
 
 /**
- * Converts a DocumentFragment to the data.
+ * Converts a DocumentFragment to data.
  *
  * @method toData
  * @param {DocumentFragment} fragment DocumentFragment to be processed.
@@ -20,7 +20,7 @@
  */
 
 /**
- * Converts the data to a DocumentFragment.
+ * Converts data to a DocumentFragment.
  *
  * @method toDom
  * @param {*} data Data to be processed.

+ 1 - 1
packages/ckeditor5-engine/tests/dataprocessor/basichtmlwriter.js

@@ -10,7 +10,7 @@ import BasicHtmlWriter from '/ckeditor5/core/dataprocessor/basichtmlwriter.js';
 describe( 'BasicHtmlWriter', () => {
 	const basicHtmlWriter = new BasicHtmlWriter();
 
-	it( 'should return empty string when empty DocumentFragment is passed' , () => {
+	it( 'should return empty string when empty DocumentFragment is passed', () => {
 		const data = basicHtmlWriter.getHtml( document.createDocumentFragment() );
 		expect( data ).to.equal( '' );
 	} );