X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Ftable%2Fdialogs%2Ftable.js;h=4675a0c6289f89ad0d218f392f8b8f5258cbbf1e;hp=215a373d4bfbf29834e47fa761f0c4b8e5264ed5;hb=c6e377a02b54abc07129d72b632763c727476a15;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6 diff --git a/_source/plugins/table/dialogs/table.js b/_source/plugins/table/dialogs/table.js index 215a373..4675a0c 100644 --- a/_source/plugins/table/dialogs/table.js +++ b/_source/plugins/table/dialogs/table.js @@ -154,7 +154,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // Should we make all first cells in a row TH? if ( !this.hasColumnHeaders && ( headers == 'col' || headers == 'both' ) ) { - for( row = 0 ; row < table.$.rows.length ; row++ ) + for ( row = 0 ; row < table.$.rows.length ; row++ ) { newCell = new CKEDITOR.dom.element( table.$.rows[ row ].cells[ 0 ] ); newCell.renameNode( 'th' ); @@ -165,7 +165,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // Should we make all first TH-cells in a row make TD? If 'yes' we do it the other way round :-) if ( ( this.hasColumnHeaders ) && !( headers == 'col' || headers == 'both' ) ) { - for( i = 0 ; i < table.$.rows.length ; i++ ) + for ( i = 0 ; i < table.$.rows.length ; i++ ) { row = new CKEDITOR.dom.element( table.$.rows[i] ); if ( row.getParent().getName() == 'tbody' ) @@ -192,7 +192,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license else table.removeStyle( 'width' ); - if( !table.getAttribute( 'style' ) ) + if ( !table.getAttribute( 'style' ) ) table.removeAttribute( 'style' ); } @@ -380,6 +380,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license var widthMatch = widthPattern.exec( selectedTable.$.style.width ); if ( widthMatch ) this.setValue( widthMatch[1] ); + else + this.setValue( '' ); }, commit : commitValue },