/*\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
function removeAllOptions( combo )\r
{\r
combo = getSelect( combo );\r
- while( combo.getChild( 0 ) && combo.getChild( 0 ).remove() )\r
+ while ( combo.getChild( 0 ) && combo.getChild( 0 ).remove() )\r
{ /*jsl:pass*/ }\r
}\r
// Moves the selected option by a number of steps (also negative).\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