by Stuart Lamour.
hi damyon, that is a lot of code there! I think many of the tinymce issues come from its code bloat, so your example might be falling into the same trap.
you can do almost all of that in about 3 lines of javascript and be library agnostic.
http://www.barneyparker.com/world-simplest-html5-wysisyg-inline-editor/
makes it much easier to edit/maintain, faster to load etc, etc....