I've been trying to figure out how to make this contenteditable div add tab spacing when I press the tab key, but so far no luck. If anyone has a solution for this issue, please feel free to share. You can use an ID, class, or any other method to get it working. Thank you.
div[contenteditable]{
display:inline-block;
font-family:lucida console;
font-size:12px;
line-height:14px;
white-space: pre;
padding:5px;
margin:0;
min-width:200px;
min-height:50px;
height:auto;
background:#fff;
border:1px solid #000;
}
<div contenteditable="true">dwdw wdw</div>