As for th whole table, open the Table Properties dialog window and go to the Advanced tab. Use the Style field to add a CSS definition for the background color, like "background-color: #000".
As for a row, use the Cell Properties option. Select the cells from the row that you are after, use the context menu to open the Cell Properties dialog window. Use the Background Color field to choose the color. Note that you can also employ this method to the whole table if you select all table cells beforehand.
On IE8 and IE9 with CKEditor 3.6.2, we find that we can select multiple cells by selecting the first cell, then shift-click in the last cell (say in a row -- also dragging across rows seems to select them too). If we right click to set the cell properties, it sometimes only ends up selecting the last cell. But when we are able to select the entire row and choose to set the background color, we get the following JS error:
Line: 51 Error: Object doesn't support property or method 'data'
SCRIPT438: Object doesn't support property or method 'data' ckeditor.js, line 51 character 1842
and it highlights this: if(A.data('cke-display-name'))
At that point, the cell properties dialog will not close on OK button, but will if you click CANCEL button (then OK on a dialog about "some options have changed". The cells actually seem to show the new background color like it was successful.
This can be reproduced easily using your stock demo.
Re: how to set background color of table in..
As for th whole table, open the Table Properties dialog window and go to the Advanced tab. Use the Style field to add a CSS definition for the background color, like "background-color: #000".
As for a row, use the Cell Properties option. Select the cells from the row that you are after, use the context menu to open the Cell Properties dialog window. Use the Background Color field to choose the color. Note that you can also employ this method to the whole table if you select all table cells beforehand.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: how to set background color of table in..
Line: 51
Error: Object doesn't support property or method 'data'
SCRIPT438: Object doesn't support property or method 'data'
ckeditor.js, line 51 character 1842
and it highlights this: if(A.data('cke-display-name'))
At that point, the cell properties dialog will not close on OK button, but will if you click CANCEL button (then OK on a dialog about "some options have changed". The cells actually seem to show the new background color like it was successful.
This can be reproduced easily using your stock demo.
Re: how to set background color of table in..
This issue was reported in http://dev.ckeditor.com/ticket/8400