瀏覽代碼

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