JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _source / plugins / tabletools / dialogs / tableCell.js
index d37cd10..06c7ec4 100644 (file)
@@ -1,5 +1,5 @@
 /*\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
@@ -26,7 +26,7 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor )
                        {\r
                                releaseHandlers( this );\r
                                callback( this, this._.parentDialog );\r
-                               this._.parentDialog.changeFocus( true );\r
+                               this._.parentDialog.changeFocus();\r
                        };\r
                        var onCancel = function()\r
                        {\r
@@ -512,14 +512,9 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor )
                                for ( var i = 0 ; i < cells.length ; i++ )\r
                                        this.commitContent( cells[ i ] );\r
 \r
+                               this._.editor.forceNextSelectionCheck();\r
                                selection.selectBookmarks( bookmarks );\r
-\r
-                               // Force selectionChange event because of alignment style.\r
-                               var firstElement = selection.getStartElement();\r
-                               var currentPath = new CKEDITOR.dom.elementPath( firstElement );\r
-\r
-                               this._.editor._.selectionPreviousPath = currentPath;\r
-                               this._.editor.fire( 'selectionChange', { selection : selection, path : currentPath, element : firstElement } );\r
+                               this._.editor.selectionChange();\r
                        }\r
                };\r
        } );\r