Javascript Firefox在错误位置显示插入符号?
我正在制作一个编辑器,我有一个DOM结构,比如Javascript Firefox在错误位置显示插入符号?,javascript,html,css,Javascript,Html,Css,我正在制作一个编辑器,我有一个DOM结构,比如 <div id="container" contenteditable=true> <div id="one">Some fancy text</div> <div id="two">Some other text</div> <div id="three">and that's enough!</div> </div> 一些文本 其他一
<div id="container" contenteditable=true>
<div id="one">Some fancy text</div>
<div id="two">Some other text</div>
<div id="three">and that's enough!</div>
</div>
一些文本
其他一些文本
其他一些文本,尝试在最后一个'here'->here后返回
我相信这仍然是Firefox中的一个已知错误。请参阅。尽管该漏洞是在6年前创建的,但它在8个月前以相同的“打开”状态更新。我希望这个开放的bug也能得到解决。似乎将此css规则添加到“容器”中可以解决大多数情况下的问题:
white-space: pre-wrap;