I am working on an application based on ASP.NET, running in IE11.
One part of the application makes use of (Telerik) RadEditor to create a layout of several items. I am trying to implement a feature that allows a user to select multiple elements and then align them either vertically or horizontally. I've been told that this feature used to work sometime in the past, but stopped working when IE upgraded either from 9 to 10, or 10 to 11.
I can select (selection border shows up on all selected elements) multiple elements in the page (in the (Telerik) RadEditor content space) by holding control+clicking. My problem is that the editor can't find all the selected elements, but rather returns the first one.
Relevant (Javascript) code is:
var editor = $find("RadEditor1");
var theSelectionObject = editor.getSelection();
var tempElem = editor.getSelectedElement();
Both theSelectionObject and tempElem are references to a single object. How can I get a collection of ALL selected elements or otherwise determine which elements are selected to use in later code?
The IE version of the browser's execCommand method offers a MultipleSelection option which allows for the selection of more than one site selectable element at a time when the user holds down the SHIFT or CTRL keys. You can find more info at https://learn.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/hh801232(v%3dvs.85)#multipleselection
To fire this method via the RadEditor API do: