8
0
Просмотр исходного кода

Use the same API for TableCellProperties methods.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
902ca7114f
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      packages/ckeditor5-table/src/tablecellproperties.js

+ 3 - 3
packages/ckeditor5-table/src/tablecellproperties.js

@@ -35,7 +35,7 @@ export default class TableCellProperties extends Plugin {
 		this.enableBackgroundColorProperty( schema, conversion );
 		this.enableBackgroundColorProperty( schema, conversion );
 		this.enablePaddingProperty( schema, conversion );
 		this.enablePaddingProperty( schema, conversion );
 		this.enableVerticalAlignmentProperty( schema, conversion );
 		this.enableVerticalAlignmentProperty( schema, conversion );
-		this.enableHorizontalAlignmentProperty( schema, editor );
+		this.enableHorizontalAlignmentProperty( schema, conversion );
 	}
 	}
 
 
 	enableBorderProperties( schema, conversion ) {
 	enableBorderProperties( schema, conversion ) {
@@ -73,12 +73,12 @@ export default class TableCellProperties extends Plugin {
 		downcastToStyle( conversion, 'tableCell', 'verticalAlignment', 'vertical-align' );
 		downcastToStyle( conversion, 'tableCell', 'verticalAlignment', 'vertical-align' );
 	}
 	}
 
 
-	enableHorizontalAlignmentProperty( schema, editor ) {
+	enableHorizontalAlignmentProperty( schema, conversion ) {
 		schema.extend( 'tableCell', {
 		schema.extend( 'tableCell', {
 			allowAttributes: [ 'horizontalAlignment' ]
 			allowAttributes: [ 'horizontalAlignment' ]
 		} );
 		} );
 
 
-		editor.conversion.attributeToAttribute( {
+		conversion.attributeToAttribute( {
 			model: {
 			model: {
 				key: 'horizontalAlignment',
 				key: 'horizontalAlignment',
 				values: [ 'left', 'right', 'center', 'justify' ]
 				values: [ 'left', 'right', 'center', 'justify' ]