/*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
CKEDITOR.dialog.add( 'select', function( editor )\r
this.commitContent( element );\r
\r
if ( isInsertMode )\r
- editor.insertElement( element );\r
+ {\r
+ editor.insertElement(element);\r
+ if( CKEDITOR.env.ie )\r
+ {\r
+ var sel = editor.getSelection(),\r
+ bms = sel.createBookmarks();\r
+ setTimeout(function ()\r
+ {\r
+ sel.selectBookmarks( bms );\r
+ }, 0 );\r
+ }\r
+ }\r
},\r
contents : [\r
{\r