Explorar o código

Code refactoring: Minor code simplification in the horizontal alignment conversion code.

Aleksander Nowodzinski %!s(int64=5) %!d(string=hai) anos
pai
achega
cc687e23f8

+ 1 - 2
packages/ckeditor5-table/src/tablecellproperties/tablecellpropertiesediting.js

@@ -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: {