-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Frontend API #5066
Comments
支持 |
|
@Vanessa219 这个功能已经由内核 API 实现了 #5102 , 且应用更广泛(比如在非 iframe 中打开的挂件), 应该没有必要支持了 |
期待啊,目前想做挂件,奈何没有更直接的文档和api支持 |
D 大,这个特性预计什么时候会发布呢 |
@william2113 还没有具体的时间表,请关注 SiYuan Roadmap |
请问一下,这个前端API的作用和插件有什么区别吗? |
@Yuminis98 还在考虑,插件是封装更好的,前端 API 是基础。 |
@Vanessa219 有个问题要请教一下,如果想在挂件里使用 有看到一个plugin-sample,但是它的引入方式看起来并不适用于挂件。 import { Plugin } from "siyuan"; |
可以使用 |
@Zuoqiu-Yingyi 嗯,好的,感谢提醒 |
在什么情况下你需要该特性?In what scenarios do you need this feature?
目前来看,这两个方法在挂件中的应用带来的体验提升是非常明显的,它让挂件跟笔记文档之间的联系更加紧密。但是当前需要手动在main.js挂载方法的做法并不适用于每一个用户,如果开发者能默认开放这两种方法并简要描述一下其用法,那将是极好的。
之前尝试过在思维导图挂件中使用这两个方法,效果不错,希望PC端能默认支持,如果移动端伺服的时候也能支持,那就更好了。
https://ld246.com/article/1651156033109
描述可能的最优解决方案 Describe the optimal solution
以下是之前做过的一些粗浅的尝试:
之前尝试过在挂件中使用上述两种方法:
PC端windows平台 V 2.0.12 目前是通过以下方法手动挂载:
替换成:
替换成:
移动端的话,之前在 v2.0.9 为了手机伺服的时候能在挂件中正常使用这两个功能,尝试过使用代理来替换main.js文件,实测是可用的,如果默认支持,则会方便很多:
替换成:
替换成:
描述候选的解决方案 Describe the candidate solution
No response
其他信息 Other information
No response
The text was updated successfully, but these errors were encountered: