Convert emails to buttons inside contentEditable
<p>I'm trying to convert emails to buttons inside a contentEditable using Regex, but I'm realizing it will need too much time for me to handle cursor location, to add a delete functionality, etc. What I expect look like it:</p>

<p><img src="http://i.stack.imgur.com/TADdP.png" alt="enter image description here"></p>

<p>My first idea was to use a textarea, floating in a div. That was maybe a better idea.</p>

<p>But... Is there some well-known open libraries to achieve it? I've seen a lot of tag libraries that can act like the tag bar on SO, but I'm searching for something that takes:</p>

<ul>
<li>A container</li>
<li>A regex to match something</li>
<li>Convert it to button</li>
<li>Delete it on backspace press.</li>
</ul>
