tinymce/tinymce — pull request #110 by wwalser (2012-02-06 12:54:08+00:00)
Title: Undo after table insertion now sets the selection correctly

I had an issue where using undo after a table insertion would cause the wrong thing to become focused. In FF and Chrome it was innocuous enough, only setting the caret to the top of the iframe's body but in IE it was causing the parent window (not the iframe) to become focused which prevented typing.

This code fixes that problem and prevents execCommands with the skip_undo property set from incorrectly modifying the beforeChange property of the undoManager.