8
0
فهرست منبع

Improved docs.

Oskar Wróbel 9 سال پیش
والد
کامیت
6c6f9dd91b

+ 1 - 1
packages/ckeditor5-engine/src/dev-utils/view.js

@@ -176,7 +176,7 @@ setData._parse = parse;
  *		const attribute = new AttributeElement( 'b' );
  *		const container = new ContainerElement( 'p' );
  *		const empty = new EmptyElement( 'img' );
- *		const ui = new EmptyElement( 'span' );
+ *		const ui = new UIElement( 'span' );
  *		getData( attribute, null, { showType: true } ); // '<attribute:b></attribute:b>'
  *		getData( container, null, { showType: true } ); // '<container:p></container:p>'
  *		getData( empty, null, { showType: true } ); // '<empty:img></empty:img>'

+ 1 - 1
packages/ckeditor5-engine/src/view/writer.js

@@ -467,7 +467,7 @@ export function clear( range, element ) {
 				}
 			}
 
-			// At the end we remove range with founded element.
+			// At the end we remove range with found element.
 			remove( rangeToRemove );
 		}
 	}

+ 5 - 5
packages/ckeditor5-engine/tests/view/writer/clear.js

@@ -44,7 +44,7 @@ describe( 'writer', () => {
 			} ).to.throw( CKEditorError, 'view-writer-invalid-range-container' );
 		} );
 
-		it( 'should remove matches element from range', () => {
+		it( 'should remove matched element from range', () => {
 			const elementToRemove = new AttributeElement( 'b' );
 
 			test(
@@ -54,7 +54,7 @@ describe( 'writer', () => {
 			);
 		} );
 
-		it( 'should remove matches element from range when range is inside text node', () => {
+		it( 'should remove matched element from range when range is inside text node', () => {
 			const elementToRemove = new AttributeElement( 'b' );
 
 			test(
@@ -64,7 +64,7 @@ describe( 'writer', () => {
 			);
 		} );
 
-		it( 'should remove matches elements from range', () => {
+		it( 'should remove multiple matched elements from range', () => {
 			const elementToRemove = new AttributeElement( 'b' );
 
 			test(
@@ -74,7 +74,7 @@ describe( 'writer', () => {
 			);
 		} );
 
-		it( 'should remove matches elements from range when range is inside text node', () => {
+		it( 'should remove multiple matched elements from range when range is inside text node', () => {
 			const elementToRemove = new AttributeElement( 'b' );
 
 			test(
@@ -84,7 +84,7 @@ describe( 'writer', () => {
 			);
 		} );
 
-		it( 'should remove only matches element', () => {
+		it( 'should remove only matched element', () => {
 			const elementToRemove = new AttributeElement( 'b' );
 
 			test(