-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Plugin API supports opening block attribute panel by block id #14276
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
需要能指定打开的是 |
确实,感谢提醒 |
目前系统内部的方法如下,你看一下是否满足? siyuan/app/src/menus/commonMenuItem.ts Line 369 in 23dabc9
|
感谢V姐回复, |
siyuan/app/src/menus/commonMenuItem.ts Line 375 in 23dabc9
导出这个也行,可以避免调用 |
分割线上没有属性,使用数据库属性的话 protyle 是必须传的。 |
感谢V姐解答, |
希望插件api支持通过块id来打开块属性面板
In what scenarios do you need this feature?
插件希望实现双击日历事件后弹出事件块的属性面板,方便修改相关属性
虽然目前通过曲线的方式实现了(即先弹出包裹protyle的dialog,在模拟鼠标点击块的右上角,最后摧毁dialog),很不优雅,且在某些情况下会点击到错误的元素。
Describe the optimal solution
思源插件api支持直接通过块id来直接打开块属性面板
Describe the candidate solution
No response
Other information
No response
The text was updated successfully, but these errors were encountered: