-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add disable
, enable
method to Protyle
#13391
Comments
做为参数进行设置,不要赋值 |
不知道怎么传参,v姐能不能指导下 |
Vanessa219
changed the title
插件开发求助: 在只读模式下,使用new Protyle,有没有办法自动解锁,允许编辑
Add Dec 9, 2024
disable
, enable
method to Protyle
不好意思,看错了,我加两个方法吧。 |
Vanessa219
added a commit
to siyuan-note/petal
that referenced
this issue
Dec 9, 2024
好的,感谢V姐🙏 |
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: