Fixing the MT bookmarklet for Safari
by Volker Weber
Jay Allen tells us how to to fix the blog bookmarklet for MovableType:
One of the only drawbacks I have experienced in using Safari and Movable Type together is the annoyance of having to edit the javascript of the generated bookmarklet in order to make it work and the subsequent loss of ability to have selected text automatically inserted into the entry.
Today, while looking for something on Mac OS X Hints, I found a little gem that has solved the bigger of those two problems and made my day.
If you want to use the MT Bookmarklet and have auto-inserted selected text, follow these easy steps
Summary: You have to change this
t=d.selection?d.selection.createRange().text:d.getSelection();
into that:
t=getSelection();