-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add disable
, enable
method to Protyle
#13391
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
Comments
做为参数进行设置,不要赋值 |
不知道怎么传参,v姐能不能指导下 |
disable
, enable
method to Protyle
不好意思,看错了,我加两个方法吧。 |
Vanessa219
added a commit
to siyuan-note/petal
that referenced
this issue
Dec 9, 2024
好的,感谢V姐🙏 |
mouyase
pushed a commit
to mouyase/siyuan
that referenced
this issue
Feb 28, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In what scenarios do you need this feature?
思源如果开启全局只读模式,尽管当前文档已经解锁了,插件使用new Protyle,根据当前文档的块创建一个编辑弹窗,默认也是只读模式。
但我插件的使用场景是,调用插件的时候,用户是需要将当前文档解锁,但目前文档解锁了,插件的弹窗,却还要再解锁一次,有点不方便,目前我只能通过Protyle的面包屑解锁编辑,请问该如何自动解锁呢?看了Protyle的参数,并没有找到对应参数,调用protyle.protyle.disable =false. 也不起作用
Describe the optimal solution
无
Describe the candidate solution
无
Other information
No response
The text was updated successfully, but these errors were encountered: