Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插入图片后,再次打开编辑报错Cannot find a descendant at path [0,2] in node:,再次打开才正常 #5855

Open
987900544yyf opened this issue May 9, 2024 · 5 comments

Comments

@987900544yyf
Copy link

插入图片后,再次打开编辑报错Cannot find a descendant at path [0,2] in node:,再次打开才正常,
文字就没事,插入图片视频编辑后再打开就报错

wangEditor 版本

wangEditor5 + v2

是否查阅了文档 ?

(文档链接 www.wangeditor.com

最小成本的复现步骤

(vue.runtime.esm.js:3065 Error: Cannot find a descendant at path [0,2] in node: {"children":[{"type":"paragraph","children":[{"text":""}]}],"operations":[{"type":"set_selection","properties":null,"newProperties":{"anchor":{"path":[0,2],"offset":3},"focus":{"path":[0,2],"offset":3}}}],"selection":{"anchor":{"path":[0,2],"offset":3},"focus":{"path":[0,2],"offset":3}},"marks":null,"id":"wangEditor-1","isDestroyed":false,"isFullScreen":false,"history":{"undos":[[{"type":"set_selection","properties":{"anchor":{"path":[0,0],"offset":0},"focus":{"path":[0,0],"offset":0}},"newProperties":{"anchor":{"path":[0,2],"offset":2},"focus":{"path":[0,2],"offset":2}}}],[{"type":"insert_text","path":[0,2],"offset":2,"text":"2"}],[{"type":"remove_text","path":[0,0],"offset":0,"text":"1111111111 asd asd as d "},{"type":"remove_node","path":[0,1],"node":{"type":"image","src":"http://jd22bjxt.oss-cn-shenzhen.aliyuncs.come97a1884dc39f5609c665617036.jpg","alt":"","href":"","style":{"width":"","height":""},"children":[{"text":""}]}},{"type":"remove_text","path":[0,1],"offset":0,"text":"112"},)

@bbhxwl
Copy link

bbhxwl commented May 13, 2024

我也刚出现这个问题。

@fanzhongke
Copy link

我的是本地运行正常,但是部署到测试环境后,编辑就会出现这种问题。还有不能删除,配置栏有时禁用有时可用
image

@cycleccc
Copy link

能录个视频看看吗,没复现,window的话win+G很方便就能录个视频

@bbhxwl
Copy link

bbhxwl commented May 16, 2024

我的是本地运行正常,但是部署到测试环境后,编辑就会出现这种问题。还有不能删除,配置栏有时禁用有时可用 image

放弃吧,我都2年,2次想用,2次都放弃了,群里都说这个富文本bug最多。

@lzn970721
Copy link

你是不是放在弹窗里了 弹窗关闭的时候销毁就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants