-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Comments
我也刚出现这个问题。 |
能录个视频看看吗,没复现,window的话win+G很方便就能录个视频 |
你是不是放在弹窗里了 弹窗关闭的时候销毁就好了 |
试试在插入新数据之前调用一下 clear() 方法 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
插入图片后,再次打开编辑报错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"},)
The text was updated successfully, but these errors were encountered: