JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.1
[ckeditor.git] / _source / plugins / editingblock / plugin.js
index f58116a..dfbe069 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -112,6 +112,13 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                                CKEDITOR.fire( 'instanceReady', null, editor );\r
                                        }, 0 );\r
                                });\r
+\r
+                       editor.on( 'destroy', function ()\r
+                       {\r
+                               // ->           currentMode.unload( holderElement );\r
+                               if ( this.mode )\r
+                                       this._.modes[ this.mode ].unload( this.getThemeSpace( 'contents' ) );\r
+                       });\r
                }\r
        });\r
 \r
@@ -227,3 +234,15 @@ CKEDITOR.config.editingBlock = true;
  * @event\r
  * @param {CKEDITOR.editor} editor The editor instance that has been created.\r
  */\r
+\r
+/**\r
+ * Fired when the CKEDITOR instance is created, fully initialized and ready for interaction.\r
+ * @name CKEDITOR.editor#instanceReady\r
+ * @event\r
+ */\r
+\r
+/**\r
+ * Fired before changing the editing mode\r
+ * @name CKEDITOR.editor#beforeModeUnload\r
+ * @event\r
+ */\r