title: How to get which commands are applyed on rich text box, JavaScript
body: <p>I have a simple RichText Editor which contains standard operations (Bold|Italic|Underline, Text Alignment, Font type, color and size). I am using execCommand function in JavaScript (more <a href="https://developer.mozilla.org/en-US/docs/Rich-Text_Editing_in_Mozilla#Executing_Commands" rel="nofollow">info</a>). So the command buttons are toggle buttons and when the mouse pointer is on the bold text (for example) how to make toggle button pressed. With other words - Has anyone idea how to get applied commands on the text to change the toggle button states. If I am not sufficiently detailed, ask me.
  Thanks for reading :)</p>