Browse Source

Fix TableStyles UI background color.

Maciej Gołaszewski 6 years ago
parent
commit
42ed4bc8ef
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/ckeditor5-table/src/tablestyleui.js

+ 2 - 2
packages/ckeditor5-table/src/tablestyleui.js

@@ -219,13 +219,13 @@ export default class TableStyleUI extends Plugin {
 
 				const tableCell = findAncestor( 'tableCell', firstPosition );
 
-				const backgroundColor = tableCell.getAttribute( 'background-color' );
+				const backgroundColor = tableCell.getAttribute( 'backgroundColor' );
 
 				// eslint-disable-next-line no-undef,no-alert
 				const newColor = prompt( 'Set new background color:', backgroundColor || '' );
 
 				editor.model.change( writer => {
-					writer.setAttribute( 'background-color', newColor, tableCell );
+					writer.setAttribute( 'backgroundColor', newColor, tableCell );
 				} );
 			} );