Updated plugin for TinyMCE 3

As requested, I am breaking the original PR down.  The changes present in this PR is for fixing the current plugin, although I have not gotten a chance to run the tests/verify that the changes have been fixed yet.

The version of TinyMCE that this is using is 3.5.8.