Browse Source

Aligned TableCellProperties to the latest helpers\' API.

Aleksander Nowodzinski 5 years ago
parent
commit
4ac9a8e202

+ 2 - 2
packages/ckeditor5-table/src/tablecellproperties/tablecellpropertiesui.js

@@ -126,9 +126,9 @@ export default class TableCellPropertiesUI extends Plugin {
 		const viewDocument = editor.editing.view.document;
 		const config = editor.config.get( 'table.tableCellProperties' );
 		const borderColorsConfig = normalizeColorOptions( config.border.colors );
-		const localizedBorderColors = getLocalizedColorOptions( editor, borderColorsConfig );
+		const localizedBorderColors = getLocalizedColorOptions( editor.locale, borderColorsConfig );
 		const backgroundColorsConfig = normalizeColorOptions( config.backgroundColors );
-		const localizedBackgroundColors = getLocalizedColorOptions( editor, backgroundColorsConfig );
+		const localizedBackgroundColors = getLocalizedColorOptions( editor.locale, backgroundColorsConfig );
 		const view = new TableCellPropertiesView( editor.locale, {
 			borderColors: localizedBorderColors,
 			backgroundColors: localizedBackgroundColors