Hi!
What is the way to get the whole set of selected elements (if any) in the editor window? I use
console.log('selected text: ', node.getSelectedText());
console.log('selected elem: ', node.getSelectedElement());
console.log('ranges: ', node.getRanges());
console.log('ranges[0]: ', node.getRanges()[0]);
and then when nothing is selected, then in my console I see what you can see in fig 1.
When I select a word, it works well, see fig 2.
It works as well if I select an image (see fig 3).
But once both are a selected (image and word), problem appears and I can not retrieve all selected elements. I suppose that I should use getRanges() and getNextNode(), but I do not understand how thay work.
If you can suggest how to proceed, it would be great!

I've forgotten to attach the
I've forgotten to attach the last screenshot for the case when both text and image are selected.
Attachments: