I'm using jQuery's click function to check the formatting of highlighted text, however the function isn't always called.
If you highlight part of a line it will work as expected, however if you highlight the entire line it simple doesn't call at all.
Here is a JSFiddle for you to try it out: http://jsfiddle.net/ZMYRH/
Is there any chance I'm using this function incorrectly? Or is there a workaround to what I want to achieve?