Ticket #7168: 7168.patch
File 7168.patch, 1.9 KB (added by , 14 years ago) |
---|
-
_source/plugins/editingblock/plugin.js
71 71 if ( !isHandlingData && editor.mode ) 72 72 { 73 73 isHandlingData = true; 74 editor.setData( getMode( editor ).getData() );74 editor.setData( getMode( editor ).getData(), null, 1 ); 75 75 isHandlingData = false; 76 76 } 77 77 }); -
_source/core/editor.js
547 547 if ( !noUpdate ) 548 548 this.updateElement(); 549 549 550 this.fire( 'destroy' ); 550 551 this.theme && this.theme.destroy( this ); 551 552 552 this.fire( 'destroy' );553 553 CKEDITOR.remove( this ); 554 554 CKEDITOR.fire( 'instanceDestroyed', null, this ); 555 555 }, … … 684 684 * editor. 685 685 * @param {Function} callback Function to be called after the setData 686 686 * is completed. 687 *@param {Boolean} internal Whether suppress any event firing when copying data internally inside editor. 687 688 * @example 688 689 * CKEDITOR.instances.editor1.<b>setData</b>( '<p>This is the editor data.</p>' ); 689 690 * @example … … 692 693 * this.checkDirty(); // true 693 694 * }); 694 695 */ 695 setData : function( data , callback )696 setData : function( data , callback, internal ) 696 697 { 697 698 if( callback ) 698 699 { … … 705 706 706 707 // Fire "setData" so data manipulation may happen. 707 708 var eventData = { dataValue : data }; 708 this.fire( 'setData', eventData );709 !internal && this.fire( 'setData', eventData ); 709 710 710 711 this._.data = eventData.dataValue; 711 712 712 this.fire( 'afterSetData', eventData );713 !internal && this.fire( 'afterSetData', eventData ); 713 714 }, 714 715 715 716 /**