-
Notifications
You must be signed in to change notification settings - Fork 21
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 some Protyle
methods to the plugin API
#21
Labels
enhancement
New feature or request
Comments
通过问题2的 API |
@Vanessa219 |
我抽空整理一下吧。为了安全性思源源码目前不能直接使用,有需求提就好了,我们会尽快完善的。 |
|
Vanessa219
changed the title
[求助] 在editorCallback中如何获取当前光标所在块元素
Add some Protyle methods to the plugin API
Nov 28, 2023
Vanessa219
changed the title
Add some Protyle methods to the plugin API
Add some Nov 28, 2023
Protyle
methods to the plugin API
@Vanessa219 nice~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
----问题1
背景:
想使用plugin.addCommand添加命令,按下快捷键后对光标所在块进行处理,我使用了editorCallback,想知道在其中如何获取当前光标所在块元素
--- 问题2
建议把源码里面 getEditorRange hasClosestBlock hasClosestByAttribute 等函数也开放给插件使用, 避免造轮子
The text was updated successfully, but these errors were encountered: