Ticket #7168: 7168.patch

File 7168.patch, 1.9 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/editingblock/plugin.js

     
    7171                                        if ( !isHandlingData && editor.mode )
    7272                                        {
    7373                                                isHandlingData = true;
    74                                                 editor.setData( getMode( editor ).getData() );
     74                                                editor.setData( getMode( editor ).getData(), null, 1 );
    7575                                                isHandlingData = false;
    7676                                        }
    7777                                });
  • _source/core/editor.js

     
    547547                        if ( !noUpdate )
    548548                                this.updateElement();
    549549
     550                        this.fire( 'destroy' );
    550551                        this.theme && this.theme.destroy( this );
    551552
    552                         this.fire( 'destroy' );
    553553                        CKEDITOR.remove( this );
    554554                        CKEDITOR.fire( 'instanceDestroyed', null, this );
    555555                },
     
    684684                 *              editor.
    685685                 * @param {Function} callback Function to be called after the setData
    686686                 *              is completed.
     687                 *@param {Boolean} internal Whether suppress  any event firing when copying data internally inside editor.
    687688                 * @example
    688689                 * CKEDITOR.instances.editor1.<b>setData</b>( '&lt;p&gt;This is the editor data.&lt;/p&gt;' );
    689690                 * @example
     
    692693                 *         this.checkDirty();    // true
    693694                 *     });
    694695                 */
    695                 setData : function( data , callback )
     696                setData : function( data , callback, internal )
    696697                {
    697698                        if( callback )
    698699                        {
     
    705706
    706707                        // Fire "setData" so data manipulation may happen.
    707708                        var eventData = { dataValue : data };
    708                         this.fire( 'setData', eventData );
     709                        !internal && this.fire( 'setData', eventData );
    709710
    710711                        this._.data = eventData.dataValue;
    711712
    712                         this.fire( 'afterSetData', eventData );
     713                        !internal && this.fire( 'afterSetData', eventData );
    713714                },
    714715
    715716                /**
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy