<div contenteditable style="border: 1px solid gray; min-width: 150px; display:inline-block; padding: 0 5px; oninput="this.textContent = this.textContent">11</div>
<div contenteditable style="border: 1px solid gray; min-width: 150px; display:inline-block; padding: 0 5px;" oninput="this.textContent = this.textContent">11</div>
<div id="inp" contenteditable style="border: 1px solid gray; min-width: 150px; display:inline-block; padding: 0 5px;">11</div> <script> var fn= e => setTimeout(()=> inp.textContent = inp.textContent,0); inp.onpaste = fn; inp.ondrop = fn; </script>