var $selection = CKEDITOR.instances.myEditor.getSelection();//当前选中区域 var $bookmarks = $selection.createBookmarks2();//当前光标 $selection.selectBookmarks($bookmarks);//还原光标位置