Ticket #3830: 3830_3.patch
File 3830_3.patch, 2.7 KB (added by , 14 years ago) |
---|
-
_source/plugins/tabletools/dialogs/tableCell.js
314 314 ], 315 315 onShow : function() 316 316 { 317 // Get the selected table cell. 318 var startElement = editor.getSelection().getStartElement(); 319 this.cell = startElement.getAscendant( 'td', true ) || startElement.getAscendant( 'th', true ); 320 321 // Call setupContent(). 322 this.setupContent( this.cell ); 317 this.cells = CKEDITOR.plugins.tabletools.getSelectedCells( 318 this._.editor.getSelection() ); 319 this.setupContent( this.cells[ 0 ] ); 323 320 }, 324 321 onOk : function() 325 322 { 326 // Call commitContent(). 327 this.commitContent( this.cell ); 323 var cells = this.cells 324 for ( var i = 0 ; i < cells.length ; i++ ) 325 this.commitContent( cells[ i ] ); 328 326 } 329 327 }; 330 328 } ); -
_source/plugins/tabletools/plugin.js
416 416 } 417 417 } 418 418 419 CKEDITOR.plugins. add( 'tabletools',419 CKEDITOR.plugins.tabletools = 420 420 { 421 421 init : function( editor ) 422 422 { … … 544 544 getItems : function() 545 545 { 546 546 var cells = getSelectedCells( editor.getSelection() ); 547 548 547 return { 549 548 tablecell_insertBefore : CKEDITOR.TRISTATE_OFF, 550 549 tablecell_insertAfter : CKEDITOR.TRISTATE_OFF, 551 550 tablecell_delete : CKEDITOR.TRISTATE_OFF, 552 tablecell_properties : cells.length == 1? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED551 tablecell_properties : cells.length > 0 ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED 553 552 }; 554 553 } 555 554 }, … … 688 687 return null; 689 688 } ); 690 689 } 691 } 692 } ); 690 }, 691 692 getSelectedCells : getSelectedCells 693 694 }; 695 CKEDITOR.plugins.add( 'tabletools', CKEDITOR.plugins.tabletools ); 693 696 })(); -
CHANGES.html
46 46 <ul> 47 47 <li><a href="http://dev.fckeditor.net/ticket/3819">#3819</a> : The cursor was not visible 48 48 when applying style to collapsed selections in Firefox 2.</li> 49 <li><a href="http://dev.fckeditor.net/ticket/3830">#3830</a> : Table cell properties dialog 50 doesn't apply to all selected cells.</li> 49 51 </ul> 50 52 <h3> 51 53 CKEditor 3.0 RC</h3>