Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 4785)
+++ /CKEditor/trunk/CHANGES.html (revision 4786)
@@ -66,4 +66,5 @@
#3905 : Fixed 'wysiwyg' mode causes unauthenticated content warnings over SSL in FF 3.5.
#4768 : Fixed open context menu in IE throws js error when focus is not inside document.
+ #4822 : Fixed applying 'Headers' to existing table does not work in IE.
Index: /CKEditor/trunk/_source/plugins/table/dialogs/table.js
===================================================================
--- /CKEditor/trunk/_source/plugins/table/dialogs/table.js (revision 4785)
+++ /CKEditor/trunk/_source/plugins/table/dialogs/table.js (revision 4786)
@@ -69,4 +69,10 @@
onOk : function()
{
+ if ( this._.selectedElement )
+ {
+ var selection = editor.getSelection(),
+ bms = editor.getSelection().createBookmarks();
+ }
+
var table = this._.selectedElement || makeElement( 'table' ),
me = this,
@@ -194,4 +200,7 @@
if ( !this._.selectedElement )
editor.insertElement( table );
+ // Properly restore the selection inside table. (#4822)
+ else
+ selection.selectBookmarks( bms );
return true;