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

思考如何改进启用脚注编号的内容刷新问题 #23

Open
Achuan-2 opened this issue Dec 2, 2024 · 1 comment
Open

思考如何改进启用脚注编号的内容刷新问题 #23

Achuan-2 opened this issue Dec 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Achuan-2
Copy link
Owner

Achuan-2 commented Dec 2, 2024

我的需求是:脚注插件如果要有序编号的话,需要更新全部的脚注块引锚文本,以及对末尾的脚注内容块位置进行重排,目前可以用protyle.wysiwyg.element来修改思源笔记的内容

我的问题是:修改锚文本,以及重排div位置后如何让思源笔记保存数据,让修改有效,而不是刷新就没了,目前不懂如何保存protyle.wysiwyg.element,之前只能用updateBlock来更新文档,耗时还会造成块临时丢失,也造成了脚注自动编号启用,只能用插件弹窗纯文本输入值

@Achuan-2 Achuan-2 added the enhancement New feature or request label Dec 2, 2024
@Achuan-2
Copy link
Owner Author

Achuan-2 commented Dec 5, 2024

动态加载的块,直接修改保存
没有加载出来的块,用updateBlock更新(需要排除已经动态加载的块)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant