我的插入符号不是在跨度之间进行的,下面是示例
回复
我所有的跨度都粘在一起,所有的跨度都是contenteditable="false",我的主要div是contenteditable="true"。
问题->插入符号不是在这些跨度之间,而是在所有跨度之前或在所有跨度之后。
<div id="variable-message-input-message" class="variable-message__compose" contenteditable="true" name="message">
Hi
<span spellcheck="false" contenteditable="false" draggable="true" id="span-First Name" class="variable-message__variable">
Name
</span> , This is just a friendly reminder for your upco
<span spellcheck="false" contenteditable="false" draggable="true" id="span-REPLY ‘2’ to CANCEL" class="variable-message__variable">
REPLY
</span>
<span spellcheck="false" contenteditable="false" draggable="true" id="span-REPLY ‘1’ to CONFIRM" class="variable-message__variable">
CONFIRM
</span>
<span spellcheck="false" contenteditable="false" draggable="true" id="span-Last Name" class="variable-message__variable">
Name
</span>
<span spellcheck="false" contenteditable="false" draggable="true" id="span-Office Location" class="variable-message__variable">
Office
</span>
</div>
发布于 2019-10-25 07:19:33
这是特定于版本的问题,因为我的铬版是v75,当我更新到v77最新版时。我上面的片段很好用。
https://stackoverflow.com/questions/58546035
复制相似问题