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 some Protyle methods to the plugin API #9762

Closed
Vanessa219 opened this issue Nov 28, 2023 · 2 comments
Closed

Add some Protyle methods to the plugin API #9762

Vanessa219 opened this issue Nov 28, 2023 · 2 comments
Assignees
Milestone

Comments

@Vanessa219
Copy link
Member

  • turnIntoOneTransaction
  • turnIntoTransaction
  • updateTransaction
  • updateBatchTransaction
  • getRange
  • hasClosestBlock
  • focusBlock

Originally posted by @Vanessa219 in siyuan-note/petal#21 (comment)

@Vanessa219 Vanessa219 self-assigned this Nov 28, 2023
@Vanessa219 Vanessa219 added this to the 2.11.1 milestone Nov 28, 2023
Vanessa219 added a commit that referenced this issue Nov 28, 2023
Vanessa219 added a commit that referenced this issue Nov 28, 2023
@suka233
Copy link

suka233 commented Feb 28, 2024

v姐,turnIntoOneTransaction可以改为静态方法调用吗?目前好像必须要正确实例化Protyle后才能调用,但是我想要直接Protyle.turnIntoOneTransaction()这样调用。这样会更灵活一点
@Vanessa219

@Vanessa219
Copy link
Member Author

转换时会产生历史提供给编辑器撤销使用,目前无法移除编辑器实例。

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

2 participants