<div class="edit" style="text-overflow: ellipsis;
font-size: 16px;
width: 200px;">
<div ng-attr-id="{{smthing.id}}" contenteditable="true"{{smthing.comment}}
</div>
</div>
当用户键入换行符或制表符空格时,它将与文本一起另存为
标记或&nbsp而不是空格。谢谢!
看起来像这样:
test1`" <div><br></div><div><br></div><div><br></div><div><br><div><br></div>"`