8
0
Pārlūkot izejas kodu

Add tests for table's attributes: borderColor, borderStyle, borderWidth & backgroundColor.

Maciej Gołaszewski 6 gadi atpakaļ
vecāks
revīzija
81c1b37503
1 mainītis faili ar 3 papildinājumiem un 8 dzēšanām
  1. 3 8
      packages/ckeditor5-table/src/tablestyleediting.js

+ 3 - 8
packages/ckeditor5-table/src/tablestyleediting.js

@@ -25,7 +25,7 @@ export default class TableStyleEditing extends Plugin {
 		const conversion = editor.conversion;
 
 		schema.extend( 'table', {
-			allowAttributes: [ 'borderWidth', 'borderColor', 'borderStyle', 'background-color', 'width', 'height' ]
+			allowAttributes: [ 'borderWidth', 'borderColor', 'borderStyle', 'backgroundColor', 'width', 'height' ]
 		} );
 
 		schema.extend( 'tableRow', {
@@ -33,13 +33,8 @@ export default class TableStyleEditing extends Plugin {
 		} );
 
 		schema.extend( 'tableCell', {
-			allowAttributes: [
-				'borderWidth', 'borderColor', 'borderStyle',
-				'backgroundColor',
-				'padding',
-				'verticalAlignment',
-				'width', 'height'
-			]
+			allowAttributes: [ 'borderWidth', 'borderColor', 'borderStyle', 'backgroundColor', 'width', 'height',
+				'padding', 'verticalAlignment' ]
 		} );
 
 		// Table attributes.