gpbmike/parchment — pull request #1 by LtSquigs (2012-02-14 15:31:35+00:00)
Title: Small bug fix with formatting buttons

Still learning Github stuff so I think I'm doing this right, next time ill make the commit message make more sense.

Anyways, there was a small bug with the formatting buttons where they wouldn't toggle correctly when clicked. It seems to be because they relied on the nodetreechange event to fire after executing the correct formatting command, but because the tags are not added until something is actually typed (not when the command is executed) the buttons never toggle (unless in special cases where some formatted text is already in there).

I switched it over to the other method of just toggling it regardless.