wangEditor
wangEditor copied to clipboard
删除图片后再编辑报错 Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node
bug 描述
在某些浏览器,删除一张图片后,再做任何操作都是报错,包括官方上的demo的也是会这样报错, Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
你预期的样子是?
正常输入
系统和浏览器及版本号
- 操作系统
- window 10
- 浏览器和版本
- Edge 114.0.1823.67
wangEditor 版本
5.1.23
请输入内容……
demo 能否复现该 bug ?
在某些电脑的某些版本浏览器下能复现,试过同样的浏览器版本,不同的电脑,但是有的报错了有的不行
- 中文 demo https://www.wangeditor.com/demo/
- English demo https://www.wangeditor.com/demo/?lang=en
最小成本的复现步骤
- 上传一张图片,删除掉,再次去编辑它就一直报错了
请问你解决了吗,我看官网现在不报错了,但是我这边也报了这个错,我是在qiankun内使用的
没有,同样版本的浏览器,同样版本的系统,它在不同电脑上表现都不一样,有的报错有的不报,都没法解决
wangEditor自定义元素会在同级新增span 导致切换中文输入法后 在图片后面无法输入文本,将自定义元素的所有兄弟节点删除 可以解决这个bug