소스 검색

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

Aleksander Nowodzinski 5 년 전
부모
커밋
cc687e23f8
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      packages/ckeditor5-table/src/tablecellproperties/tablecellpropertiesediting.js

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