/*\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
\r
\r
onHide : function()\r
{\r
- if ( CKEDITOR.env.ie )\r
+ // Unlock the selection upon first panel closing.\r
+ if ( CKEDITOR.env.ie && !this.parent )\r
{\r
var selection = this.editor.getSelection();\r
- selection && selection.unlock();\r
+ selection && selection.unlock( true );\r
}\r
\r
this.onHide && this.onHide();\r