8
0
فهرست منبع

Merge branch 'master' into t/ckeditor5/1404

Aleksander Nowodzinski 6 سال پیش
والد
کامیت
197ac2909b

+ 1 - 1
packages/ckeditor5-table/src/commands/mergecellcommand.js

@@ -114,7 +114,7 @@ export default class MergeCellCommand extends Command {
 	/**
 	 * Returns a cell that can be merged with the current cell depending on the command's direction.
 	 *
-	 * @returns {module:engine/model/element|undefined}
+	 * @returns {module:engine/model/element~Element|undefined}
 	 * @private
 	 */
 	_getMergeableCell() {

+ 1 - 1
packages/ckeditor5-table/src/ui/inserttableview.js

@@ -59,7 +59,7 @@ export default class InsertTableView extends View {
 		 * @member {String} #label
 		 */
 		this.bind( 'label' )
-			.to( this, 'columns', this, 'rows', ( columns, rows ) => `${ rows } x ${ columns }` );
+			.to( this, 'columns', this, 'rows', ( columns, rows ) => `${ rows } × ${ columns }` );
 
 		this.setTemplate( {
 			tag: 'div',

+ 3 - 3
packages/ckeditor5-table/tests/ui/inserttableview.js

@@ -39,7 +39,7 @@ describe( 'InsertTableView', () => {
 		} );
 
 		it( 'sets #label to default rows & columns', () => {
-			expect( view.label ).to.equal( '0 x 0' );
+			expect( view.label ).to.equal( '0 × 0' );
 		} );
 
 		it( 'creates #element from template', () => {
@@ -85,11 +85,11 @@ describe( 'InsertTableView', () => {
 			it( 'binds #label to rows & columns', () => {
 				view.rows = 3;
 
-				expect( view.label ).to.equal( '3 x 0' );
+				expect( view.label ).to.equal( '3 × 0' );
 
 				view.columns = 7;
 
-				expect( view.label ).to.equal( '3 x 7' );
+				expect( view.label ).to.equal( '3 × 7' );
 			} );
 
 			it( 'mousedown event should be prevented', () => {