The problem is: I have an input text type element, and a button beside it.
Once the button is clicked, the selected text inside the input must wrap with a html element. For example, when the button is clicked, the selected text wrapped with <span style='color:red'></span>
!
Does anyone has any solution ?