javascript - Cursor is not place at end of custom element -


p code {    padding: 1px 5px 1px 5px;  }  code {    white-space: pre-wrap;    padding: 1px 5px;    font-family: consolas, menlo, monaco, lucida console, liberation mono, dejavu sans mono, bitstream vera sans mono, courier new, monospace, sans-serif;    background-color: #eee;  }
<div class="" contenteditable="true" spellcheck="false" style="height: 350px;"><p>efiwefwpei&nbsp;<code>fowef</code>&nbsp;wefwefwefwefweff</p></div>

  1. why cursor not place @ ending of code element when want continuos typing
  2. i want typing @ beginning of code element, can't it

how fix (in way of user experience , code element that)


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -