All knows, that we can get selection of text in javascript by method
var range = window.getSelection ();
But, how to get style of this selection? When I select bolded text or italic, how to i can know about this?
(I have only one idea: get position of this selected text and get html for this position...)