Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

textRange selection MSIE

I can easily set the selection on 2+ elements programatically in Firefox, But have had no success with IE so I hope anyone here can help me with this.


1 Answers

IE doesn't support multiple concurrent selected TextRanges, whether programmatically or manually selected. You can have a ControlRange of multiple selected elements, but not stretches of text.

It's possible for other browsers that embed the Web Browser control to support multiple text ranges:

Host applications can provide a multiple selection mechanism and can return a collection of TextRange objects that represents discontinuous selections.

But as of today IE doesn't, and I don't know of any other host application that does. Or indeed of any other browser than Firefox 3 that allows it.

like image 162
bobince Avatar answered Apr 09 '26 13:04

bobince



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!