As an FYI Paul I used your latest 7.1 version of this this code and found it caused a huge error with my site's editing capabilities. I was unable to publish / save draft on any new blog posts unless I disabled scripts.
I've been trying to add a post to my blog since last Friday, but the "publish/ save draft" widget is not appearing in the top left hand corner of the editor screen to allow me to save the content. Is anyone else experience this issue??