Skip to content

Plugin API supports opening block attribute panel by block id #14276

@loonghfut

Description

@loonghfut

希望插件api支持通过块id来打开块属性面板

In what scenarios do you need this feature?

插件希望实现双击日历事件后弹出事件块的属性面板,方便修改相关属性
虽然目前通过曲线的方式实现了(即先弹出包裹protyle的dialog,在模拟鼠标点击块的右上角,最后摧毁dialog),很不优雅,且在某些情况下会点击到错误的元素。

Image

Image

Image

Describe the optimal solution

思源插件api支持直接通过块id来直接打开块属性面板

Image

Describe the candidate solution

No response

Other information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions