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

InnerEditorEvent.BEFORE_CLOSE事件中执行app.tree.toJSON(),text的visible是false #199

Open
leidao opened this issue Aug 30, 2024 · 1 comment

Comments

@leidao
Copy link

leidao commented Aug 30, 2024

如题,在做撤销回退功能时,发现该问题,不知是bug还是特意这么设定的,如果不是bug的话该怎么绕过,目前是写了个定时器,感觉不优雅

代码:https://cloudstudio.net/a/20803058263158784

image
@leaferjs
Copy link
Owner

编辑文本的时候,是把原始文本隐藏了,再显示一个dom代替的,所以会有这种情况。

你可以监听InnerEditorEvent.CLOSE事件,那个时候应该已经显示回来了

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

2 participants