Replacing text inside textarea without focus

前端 未结 4 1606
慢半拍i
慢半拍i 2021-01-12 23:09

I want to replace selected text(or insert new text after cursor position if nothing is selected). The new text is entered from another textbox.
I want to be able to in

4条回答
  •  悲哀的现实
    2021-01-12 23:59

    This is alternative solution based on answers from above and more ideas.
    For IE only (other browsers support this functionality by default).

    More testing is needed (I tested it just in IE8)

    
    

提交回复
热议问题