瀏覽代碼

Fix TableStyles UI background color.

Maciej Gołaszewski 6 年之前
父節點
當前提交
42ed4bc8ef
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 );
 				} );
 			} );