How do I use the execCommand() in Chrome? Here is the code I have right now It is being used to insert a special character when hitting the tab button
function editAble(supr){
document.getElementById('codeline').contentEditable='true';
document.getElementById('codeline').onkeydown=function(e)
{
if(e.keyCode==9){
e.preventDefault();
range1 = document.getElementById('codeline');
range1.execCommand("InsertHtml",false,"p");
}
}
}