X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Feditingblock%2Fplugin.js;h=4d5cfe2835b0a18ff78fb4b4f48c802b835cf2ec;hp=7d7742f509c15d09af70da047241d1621ba5cc96;hb=e73319a12b56100b29ef456fd74114fe5519e01c;hpb=f0610347140239143439a511ee2bd48cb784f470 diff --git a/_source/plugins/editingblock/plugin.js b/_source/plugins/editingblock/plugin.js index 7d7742f..4d5cfe2 100644 --- a/_source/plugins/editingblock/plugin.js +++ b/_source/plugins/editingblock/plugin.js @@ -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. */