i want to run this code in IE, it is working fine in Firefox.
Code:-
var
e1 = document.getElementById('<% =Editor1.ClientID%>');
var selectedDiv = e1.GetSelection();
selectedDiv.anchorNode.parentNode.innerHTML = '<b>' + selectedDiv.anchorNode.parentNode.innerHTML + '</b>'
Somehow in IE,
selectedDiv.anchorNode is keep coming as undefined. Please provide me the alternative code.
Karan
Karan Singh
(Web Developer)