X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Ftable%2Fdialogs%2Ftable.js;h=461e36e64c7c0a96042d9f82a489b9f270a6e6f6;hp=2c02aa2dbba44d8e60c3d0395822adb8c539faff;hb=8761695d9b70afe75905deaac88f78c1f8aeb32d;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91 diff --git a/_source/plugins/table/dialogs/table.js b/_source/plugins/table/dialogs/table.js index 2c02aa2..461e36e 100644 --- a/_source/plugins/table/dialogs/table.js +++ b/_source/plugins/table/dialogs/table.js @@ -97,7 +97,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license } } - // Modify the table headers. Depends on havint rows and cols generated + // Modify the table headers. Depends on having rows and cols generated // correctly so it can't be done in commit functions. // Should we make a ? @@ -115,8 +115,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license if ( th.type == CKEDITOR.NODE_ELEMENT ) { th.renameNode( 'th' ); - if ( !i ) - th.setAttribute( 'scope', 'col' ); + th.setAttribute( 'scope', 'col' ); } } thead.append( theRow.remove() ); @@ -153,7 +152,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { newCell = new CKEDITOR.dom.element( table.$.rows[ row ].cells[ 0 ] ); newCell.renameNode( 'th' ); - newCell.setAttribute( 'scope', 'col' ); + newCell.setAttribute( 'scope', 'row' ); } } @@ -166,7 +165,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license if ( row.getParent().getName() == 'tbody' ) { newCell = new CKEDITOR.dom.element( row.$.cells[0] ); - newCell.renameNode( 'td'); + newCell.renameNode( 'td' ); newCell.removeAttribute( 'scope' ); } }