I have iframe with id="iView" and designMode = on.
My code:
var iframeWindow = document.getElementById('iView').contentWindow.document;
var range = iframeWindow.getSelection().getRangeAt(0);
The Error I get:
Microsoft JScript runtime error: Object doesn't support this property or method
I also tried answers from
http://stackoverflow.com/questions/1471759/how-to-get-selected-text-from-iframe-with-javascript