I have a div with contentEditable set to true. I have to find selected text html. I am able to get selected text in Firefox by:
window.getSelection();
In case of IE, I am able to get selected text html by using:
document.selection.createRange()
But, how can I find selected text html in Firefox?