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

[Feature Request] 希望增加工具栏的动态设置功能 #703

Closed
1 task done
joker585 opened this issue Jan 26, 2024 · 3 comments
Closed
1 task done

[Feature Request] 希望增加工具栏的动态设置功能 #703

joker585 opened this issue Jan 26, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@joker585
Copy link

Prerequisites

  • There isn't an existing issue that requests the same feature, to avoid duplicates.

Clear and concise description of the problem

有切换内容时更改toolBarRight内容的需求

Suggested solution

希望可以增加一个setToolbarRight/insertToolbarRight/removeToolbarRight类似的功能

Further Information

No response

Contributing

None

@joker585 joker585 added the enhancement New feature or request label Jan 26, 2024
@sunsonliu
Copy link
Collaborator

image

已实现并提交到dev分支,使用例子为:

cherry.resetToolbar('toolbarRight', ['bold', 'italic'])

jiawei686 added a commit that referenced this issue Jan 29, 2024
* dev:
  chore(release): v0.8.38
  fix: 联想功能支持多实例
  fix: 修复自定义keyword覆盖问题 (#705)
  doc: 更新API文档
  feat: #703 增加动态重置工具栏的API
  feat: #702 提供销毁函数
  feat: 优化联想的选中逻辑,默认不选中任意选项,不影响回车键
@sunsonliu
Copy link
Collaborator

sunsonliu commented Jan 29, 2024

已发版,可在 https://tencent.github.io/cherry-markdown/examples/api.html 这里体验

@joker585
Copy link
Author

十分感谢!

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

2 participants