8
0
Pārlūkot izejas kodu

API docs fixes.

Piotrek Koszuliński 9 gadi atpakaļ
vecāks
revīzija
f36033ba25

+ 1 - 1
packages/ckeditor5-engine/src/controller/datacontroller.js

@@ -269,7 +269,7 @@ export default class DataController {
 	 * See {@link engine.controller.getSelectedContent}.
 	 *
 	 * @fires engine.controller.DataController#getSelectedContent
-	 * @param {engine.model.Selection} The selection of which content will be retrieved.
+	 * @param {engine.model.Selection} selection The selection of which content will be retrieved.
 	 * @returns {engine.model.DocumentFragment} Document fragment holding the clone of the selected content.
 	 */
 	getSelectedContent( selection ) {

+ 2 - 2
packages/ckeditor5-engine/src/controller/getselectedcontent.js

@@ -40,7 +40,7 @@ export default function getSelectedContent( selection ) {
 	// ## 1st step
 	//
 	// First, we'll clone a fragment represented by a minimal flat range
-	// containing the origian range to be cloned.
+	// containing the original range to be cloned.
 	// E.g. let's consider such a range:
 	//
 	// <p>x</p><quote><p>y</p><h>fir[st</h></quote><p>se]cond</p><p>z</p>
@@ -75,7 +75,7 @@ export default function getSelectedContent( selection ) {
 
 	// ## 2nd step
 	//
-	// If the orignal range wasn't flat, then we need to remove the excess nodes from the both ends of the cloned fragment.
+	// If the original range wasn't flat, then we need to remove the excess nodes from the both ends of the cloned fragment.
 	//
 	// For example, for the range shown in the 1st step comment, we need to remove these pieces:
 	//