JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.2
[ckeditor.git] / _source / plugins / editingblock / plugin.js
index 7d7742f..4d5cfe2 100644 (file)
@@ -163,6 +163,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                        if ( mode == this.mode )\r
                                return;\r
 \r
+                       this._.previousMode = this.mode;\r
+\r
                        this.fire( 'beforeModeUnload' );\r
 \r
                        var currentMode = this.getMode();\r
@@ -187,7 +189,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                });\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
@@ -272,4 +274,5 @@ CKEDITOR.config.editingBlock = true;
  * 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