I had a cow-orker explain this to me, and I never thought it would actually be this simple:
Writing bug-free code is simply a matter of getting all the letters in the right order.
I added some editing tools to the admin post page in WordPress. I like to use the em dash and now and then I want an ellipsis, so I added shortcut buttons to auto-insert them. I thought if I had the dagger code, I may use it in the future, so I added it, too. Here’s the code you need (add it to /wp-includes/js/quicktags.js):
edButtons[edButtons.length] =
new edButton('ed_emdash'
,'emdash'
,'—'
,''
,'h'
);
edButtons[edButtons.length] =
new edButton('ed_ellipsis'
,'ellipsis'
,'…'
,''
,'e'
);
edButtons[edButtons.length] =
new edButton('ed_dagger'
,'dagger'
,'†'
,''
,'g'
);
Forgive the formatting, I used their style to preserve the overall appearance of the code. I never start a line of code with a comma. I would compress that button code to take either one or two lines. I would certainly attempt to keep the entire new call on one line.
Well, that wasn’t too hard. I fixed the calendar problem I spotted last night. This theme’s shaping up to be pretty nice.
Now if I could just get a real graphics person to make me some better post icons…