Ticket #3830: 3830.patch
File 3830.patch, 2.9 KB (added by , 12 years ago) |
---|
-
_source/plugins/tabletools/dialogs/tableCell.js
311 311 } 312 312 ] 313 313 } 314 ], 315 onShow : function() 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 ); 323 }, 324 onOk : function() 325 { 326 // Call commitContent(). 327 this.commitContent( this.cell ); 328 } 314 ] 329 315 }; 330 316 } ); -
_source/plugins/tabletools/plugin.js
424 424 425 425 editor.addCommand( 'cellProperties', new CKEDITOR.dialogCommand( 'cellProperties' ) ); 426 426 CKEDITOR.dialog.add( 'cellProperties', this.path + 'dialogs/tableCell.js' ); 427 // Initialize table cell properties dialog. 428 CKEDITOR.on( 'dialogDefinition', function( evt ){ 427 429 430 if ( evt.data.name == 'cellProperties' ) 431 { 432 var definition = evt.data.definition; 433 definition.onShow = function() 434 { 435 this.cells = getSelectedCells( editor.getSelection() ); 436 this.setupContent( this.cells[ 0 ] ); 437 }; 438 definition.onOk = function() 439 { 440 var cells = this.cells 441 for ( var i = 0 ; i < cells.length ; i++ ) 442 this.commitContent( cells[ i ] ); 443 }; 444 } 445 } ); 446 428 447 editor.addCommand( 'tableDelete', 429 448 { 430 449 exec : function( editor ) … … 544 563 getItems : function() 545 564 { 546 565 var cells = getSelectedCells( editor.getSelection() ); 547 548 566 return { 549 567 tablecell_insertBefore : CKEDITOR.TRISTATE_OFF, 550 568 tablecell_insertAfter : CKEDITOR.TRISTATE_OFF, 551 569 tablecell_delete : CKEDITOR.TRISTATE_OFF, 552 tablecell_properties : cells.length == 1? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED570 tablecell_properties : cells.length > 0 ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED 553 571 }; 554 572 } 555 573 }, -
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>