Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #196 from ckeditor/t/ckeditor5/1151
Browse files Browse the repository at this point in the history
Other: Adjusted `InsertTableView` for better compatibility with right–to–left (RTL) languages. See ckeditor/ckeditor5#1151.
  • Loading branch information
Reinmar authored Aug 12, 2019
2 parents 4569d21 + 92d8f87 commit 524586b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ui/inserttableview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions tests/ui/inserttableview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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', () => {
Expand Down

0 comments on commit 524586b

Please sign in to comment.