Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/429.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Firefox在错误位置显示插入符号?_Javascript_Html_Css - Fatal编程技术网

Javascript Firefox在错误位置显示插入符号?

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> 一些文本 其他一

我正在制作一个编辑器,我有一个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>

一些文本
其他一些文本
其他一些文本,尝试在最后一个'here'->here后返回

我相信这仍然是Firefox中的一个已知错误。请参阅。尽管该漏洞是在6年前创建的,但它在8个月前以相同的“打开”状态更新。我希望这个开放的bug也能得到解决。

似乎将此css规则添加到“容器”中可以解决大多数情况下的问题:

white-space: pre-wrap;