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.
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- Keeping track of variable instances
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:
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.