As here on a stack made or in many forums. I write the text, then select one word and press the B button or add a link and bold or just this word becomes the answer to the question how to catch the highlighted word: https://stackoverflow.com/questions/275761/how-to-get-selected -text-from-textbox-control-with-javascript
But how then to surround it with tags b for example. Replacing regular? And if he singled out the word "so" and in the text there are 3 words "so" in different places?