app/assets/javascripts/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js in refinerycms-ckeditor-0.1.4 vs app/assets/javascripts/ckeditor/_source/plugins/tabletools/dialogs/tableCell.js in refinerycms-ckeditor-0.2.0

- old
+ new

@@ -1,7 +1,7 @@ /* -Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'cellProperties', function( editor ) { @@ -24,11 +24,11 @@ { var onOk = function() { releaseHandlers( this ); callback( this, this._.parentDialog ); - this._.parentDialog.changeFocus( true ); + this._.parentDialog.changeFocus(); }; var onCancel = function() { releaseHandlers( this ); this._.parentDialog.changeFocus(); @@ -510,16 +510,11 @@ var cells = this.cells; for ( var i = 0 ; i < cells.length ; i++ ) this.commitContent( cells[ i ] ); + this._.editor.forceNextSelectionCheck(); selection.selectBookmarks( bookmarks ); - - // Force selectionChange event because of alignment style. - var firstElement = selection.getStartElement(); - var currentPath = new CKEDITOR.dom.elementPath( firstElement ); - - this._.editor._.selectionPreviousPath = currentPath; - this._.editor.fire( 'selectionChange', { selection : selection, path : currentPath, element : firstElement } ); + this._.editor.selectionChange(); } }; } );