/*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
if ( mode == this.mode )\r
return;\r
\r
+ this._.previousMode = this.mode;\r
+\r
this.fire( 'beforeModeUnload' );\r
\r
var currentMode = this.getMode();\r
});\r
}\r
\r
- modeEditor.load( holderElement, ( typeof data ) != 'string' ? this.getData() : data);\r
+ modeEditor.load( holderElement, ( typeof data ) != 'string' ? this.getData() : data );\r
};\r
\r
/**\r
*/\r
\r
/**\r
- * Fired before changing the editing mode.\r
+ * Fired before changing the editing mode. See also CKEDITOR.editor#beforeSetMode and CKEDITOR.editor#mode\r
* @name CKEDITOR.editor#beforeModeUnload\r
* @event\r
*/\r
\r
/**\r
- * Fired before the editor mode is set.\r
+ * Fired before the editor mode is set. See also CKEDITOR.editor#mode and CKEDITOR.editor#beforeModeUnload\r
* @name CKEDITOR.editor#beforeSetMode\r
* @event\r
* @since 3.5.3\r
* @param {String} newMode The name of the mode which is about to be set.\r
*/\r
+\r
+/**\r
+ * Fired after setting the editing mode. See also CKEDITOR.editor#beforeSetMode and CKEDITOR.editor#beforeModeUnload\r
+ * @name CKEDITOR.editor#mode\r
+ * @event\r
+ * @param {String} previousMode The previous mode of the editor.\r
+ */\r