I am very confused by contenteditable behavior, because sometimes is working and sometimes not. In this example is not working. When I remove all
then works
.textarea{
min-height: 100px;
}
.result-variable {
display: inline-block;
border-bottom: dashed 1px #382781;
font-weight: 200;
}
<div class="textarea" contenteditable="true">This i some data<br><span class="result-variable" contenteditable="false">Data 1 (can't remove)</span><br><span class="result-variable" contenteditable="false">Data 2 (cant remove)</span></div>