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

Plugin eventbus for switch-protyle on the mobile #10766

Closed
OpaqueGlass opened this issue Mar 27, 2024 · 5 comments
Closed

Plugin eventbus for switch-protyle on the mobile #10766

OpaqueGlass opened this issue Mar 27, 2024 · 5 comments
Assignees
Milestone

Comments

@OpaqueGlass
Copy link
Contributor

In what scenarios do you need this feature?

在移动端切换文档时,似乎并不能够触发switch-protyle事件;目前层级导航插件使用loaded-protyle-static,在侧滑返回时不能触发更新;

Describe the optimal solution

希望有一个适配移动端的编辑器切换事件;

Describe the candidate solution

No response

Other information

No response

@OpaqueGlass
Copy link
Contributor Author

OpaqueGlass commented Mar 27, 2024

另外请教一下,移动端的protyle都没有“model”,无法判断是正常打开文档还是插件打开的,有区分办法吗?

Vanessa219 added a commit that referenced this issue Mar 27, 2024
@Vanessa219 Vanessa219 self-assigned this Mar 27, 2024
@Vanessa219 Vanessa219 added this to the 3.0.6 milestone Mar 27, 2024
@Vanessa219
Copy link
Member

文档打开的目前为 window.siyuan.mobile.editor

@88250 88250 changed the title FR: plugin eventbus for switch-protyle on mobile device Plugin eventbus for switch-protyle on mobile device Mar 27, 2024
@88250 88250 changed the title Plugin eventbus for switch-protyle on mobile device Plugin eventbus for switch-protyle on the mobile Mar 27, 2024
@OpaqueGlass
Copy link
Contributor Author

OpaqueGlass commented Apr 14, 2024

@Vanessa219 打扰一下,在移动端,switch-protyle触发的似乎有点早,事件出现的时候,event detail中的Protyle、window.siyuan.mobile.editor.protyle还是上一个文档的,请问这个可以处理一下吗?

手动关联一下:OpaqueGlass/syplugin-hierarchyNavigate#50

@Vanessa219
Copy link
Member

下个版本再看看

Vanessa219 added a commit that referenced this issue Apr 16, 2024
@OpaqueGlass
Copy link
Contributor Author

问题已经解决,谢谢

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

No branches or pull requests

2 participants