I never expected such a quick response
But what I'm trying to do is the following:
If I write "Hello world" and I get the innerHtml I'll get the entire string ("Hello world"), but by selecting "world" and applying the style, the result i'd like to get is:
"Hello <span class='.Title'>world</span>".
Maybe I'm not getting just what you mean with "selected text"... I tried inneHtml but I get what's between <body> and </body>.
Thanks in advance.