Browse Source

Docs: typos.

Szymon Cofalik 10 năm trước cách đây
mục cha
commit
fbf378e9a0

+ 1 - 1
packages/ckeditor5-engine/src/treeview/converter.js

@@ -92,7 +92,7 @@ export default class Converter {
 	 * @param {document} domDocument Document which will be used to create DOM nodes.
 	 * @param {Object} [options] Conversion options.
 	 * @param {Boolean} [options.bind=false] Determines whether new elements will be bound.
-	 * @param {Boolean} [options.withChildren=true] If true node's children will be converter too.
+	 * @param {Boolean} [options.withChildren=true] If true node's children will be converted too.
 	 * @returns {Node} Converted node.
 	 */
 	viewToDom( viewNode, domDocument, options ) {

+ 1 - 1
packages/ckeditor5-engine/src/treeview/element.js

@@ -19,7 +19,7 @@ export default class Element extends Node {
 	/**
 	 * Creates a tree view element.
 	 *
-	 * Attributes can be passes in various formats:
+	 * Attributes can be passed in various formats:
 	 *
 	 *		new Element( 'div', { 'class': 'editor', 'contentEditable': 'true' } ); // object
 	 *		new Element( 'div', [ [ 'class', 'editor' ], [ 'contentEditable', 'true' ] ] ); // map-like iterator

+ 3 - 3
packages/ckeditor5-engine/src/treeview/renderer.js

@@ -101,14 +101,14 @@ export default class Renderer {
 	 * {@link core.treeView.Renderer#markedTexts} and updated all nodes which needs to be updated. Then it clear all three
 	 * sets.
 	 *
-	 * Renderer try not to bread IME, so it do as little as it is possible to update DOM.
+	 * Renderer try not to break IME, so it do as little as it is possible to update DOM.
 	 *
 	 * For attributes it adds new attributes to DOM elements, update attributes with different values and remove
 	 * attributes which does not exists in the view element.
 	 *
 	 * For text nodes it update the text string if it is different. Note that if parent element is marked as an element
-	 * which changed child list, text node update will not be done, because it may not be possible do find a
-	 * {@link core.treeView.Converter#getCorrespondingDomText corresponding DOM text}. The change will be handled in the
+	 * which changed child list, text node update will not be done, because it may not be possible to find a
+	 * {@link @treeView.Converter#getCorrespondingDomText corresponding DOM text}. The change will be handled in the
 	 * parent element.
 	 *
 	 * For nodes which changed child list it calculates a {@link diff} using {@link core.treeView.Converter#compareNodes}