X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Feditingblock%2Fplugin.js;h=abe0b710663dc6a44a5ef904f759d2256eddc956;hb=2f22c0c38f17e75be5541089076885442aaa2377;hp=7d7742f509c15d09af70da047241d1621ba5cc96;hpb=f0610347140239143439a511ee2bd48cb784f470;p=ckeditor.git diff --git a/_source/plugins/editingblock/plugin.js b/_source/plugins/editingblock/plugin.js index 7d7742f..abe0b71 100644 --- a/_source/plugins/editingblock/plugin.js +++ b/_source/plugins/editingblock/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -163,6 +163,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license if ( mode == this.mode ) return; + this._.previousMode = this.mode; + this.fire( 'beforeModeUnload' ); var currentMode = this.getMode(); @@ -187,7 +189,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license }); } - modeEditor.load( holderElement, ( typeof data ) != 'string' ? this.getData() : data); + modeEditor.load( holderElement, ( typeof data ) != 'string' ? this.getData() : data ); }; /** @@ -272,4 +274,5 @@ CKEDITOR.config.editingBlock = true; * Fired after setting the editing mode. See also CKEDITOR.editor#beforeSetMode and CKEDITOR.editor#beforeModeUnload * @name CKEDITOR.editor#mode * @event + * @param {String} previousMode The previous mode of the editor. */