if ( !noUpdate )\r
this.updateElement();\r
\r
+ this.fire( 'destroy' );\r
this.theme && this.theme.destroy( this );\r
\r
- this.fire( 'destroy' );\r
CKEDITOR.remove( this );\r
CKEDITOR.fire( 'instanceDestroyed', null, this );\r
},\r
* editor.\r
* @param {Function} callback Function to be called after the setData\r
* is completed.\r
+ *@param {Boolean} internal Whether suppress any event firing when copying data internally inside editor.\r
* @example\r
* CKEDITOR.instances.editor1.<b>setData</b>( '<p>This is the editor data.</p>' );\r
* @example\r
* this.checkDirty(); // true\r
* });\r
*/\r
- setData : function( data , callback )\r
+ setData : function( data , callback, internal )\r
{\r
if( callback )\r
{\r
\r
// Fire "setData" so data manipulation may happen.\r
var eventData = { dataValue : data };\r
- this.fire( 'setData', eventData );\r
+ !internal && this.fire( 'setData', eventData );\r
\r
this._.data = eventData.dataValue;\r
\r
- this.fire( 'afterSetData', eventData );\r
+ !internal && this.fire( 'afterSetData', eventData );\r
},\r
\r
/**\r