Add `setTooltip` to `BaseToolbarButtonInstanceApi` like in `ToolbarSplitButtonInstanceApi`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 16.3k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
📝 Provide a description of the new feature or improvement
We'd like to dynamically update tooltips of custom toolbar buttons.
This is currently not possible since BaseToolbarButtonInstanceApi only allows setting text or icon.
It is already possible to change tooltips of split-toolbar-buttons (ToolbarSplitButtonInstanceApi) though undocumented.(https://www.tiny.cloud/docs/tinymce/latest/custom-split-toolbar-button/#api)
🫶 What is the motivation?
To dynamically change tooltips of toolbar buttons.
🔗 What is the consequence of not having this feature?
We can't implement our feature the way we would like to.
🚦 How important would you rate the requested feature or improvement?
Important
If you'd like to see this implemented sooner, add a 👍 reaction to this post.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating BaseToolbarButtonInstanceApi and comparing it with ToolbarSplitButtonInstanceApi, whose setTooltip behavior is referenced in the issue and documented at the linked custom split toolbar button page. Confirm the existing tooltip behavior, then verify that the base toolbar button API supports the same operation and that the relevant checks cover it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100