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();
I 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. How can in do this.Please help.