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

Commit

Permalink
Code refactoring: Minor code simplification in the horizontal alignme…
Browse files Browse the repository at this point in the history
…nt conversion code.
  • Loading branch information
oleq committed Mar 26, 2020
1 parent 1429d55 commit 956eb3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tablecellproperties/tablecellpropertiesediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ function enableHorizontalAlignmentProperty( schema, conversion, locale ) {
allowAttributes: [ 'horizontalAlignment' ]
} );

const defaultOption = locale.contentLanguageDirection == 'rtl' ? 'right' : 'left';
const options = [ 'left', 'right', 'center', 'justify' ].filter( option => option != defaultOption );
const options = [ locale.contentLanguageDirection == 'rtl' ? 'left' : 'right', 'center', 'justify' ];

conversion.attributeToAttribute( {
model: {
Expand Down

0 comments on commit 956eb3e

Please sign in to comment.