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

Add plugin API protyle #8445

Closed
zxhd863943427 opened this issue Jun 3, 2023 · 5 comments
Closed

Add plugin API protyle #8445

zxhd863943427 opened this issue Jun 3, 2023 · 5 comments
Assignees
Milestone

Comments

@zxhd863943427
Copy link
Contributor

zxhd863943427 commented Jun 3, 2023

希望能获得protyle的接口

In what scenarios do you need this feature?

我尝试在自定义的tab中创建类似思源本体的块,但是难以实现,希望官方能给一个创建、操作protyle的接口,方便再自定义的tab、dock、dialog中使用。

Describe the optimal solution

如题

Describe the candidate solution

No response

Other information

No response

@88250
Copy link
Member

88250 commented Jun 3, 2023

请问创建这种块的目的是,或者说下使用场景?

@zxhd863943427
Copy link
Contributor Author

我在尝试改进思源的标签,通过sql查询获得块id,然后通过api获得块dom,最后放入protyle中。我希望能与思源内部的编辑器一样拥有块菜单、toolbar,同时编辑后能实时保存。

除此之外,获取思源的块,并且在自定义界面中进行编辑应该是之后比较常见的插件。

@88250
Copy link
Member

88250 commented Jun 3, 2023

也就是说需要编辑器的功能?

@zxhd863943427
Copy link
Contributor Author

@88250 88250 changed the title 希望能获得protyle的接口 Add frontend API protyle Jun 7, 2023
@88250 88250 changed the title Add frontend API protyle Add plugin API protyle Jun 7, 2023
@zxhd863943427
Copy link
Contributor Author

zxhd863943427 commented Jun 21, 2023

目前pdf标注视图已基本实现,原本计划使用protyle实现,改用浮窗实现,性能达到瓶颈,主要开销来自打开浮窗和移动浮窗,只有使用protyle才能提升。
zxhd863943427/siyuan-plugin-pdf-annotate-view-enhance

希望能尽早提供这个接口。

@Vanessa219 Vanessa219 added this to the 2.9.3 milestone Jun 22, 2023
Vanessa219 added a commit to siyuan-note/petal that referenced this issue Jun 23, 2023
Vanessa219 added a commit that referenced this issue Jun 23, 2023
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

3 participants