opentiny / opentiny/tiny-editor
✨ [Feature]: 希望支持快捷菜单的选项默认情况下与Toolbar配置匹配
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 535
- Forks
- 71
- Avg merge
- 6h 50m
- Merged PRs (30d)
- 2
Description
What problem does this feature solve
目前斜杆快捷菜单的选项是写死的,即使toolbar没有配置,也会显示在快捷菜单列表里,这样不太合理,建议:
- 快捷菜单功能默认不开启,可通过配置开启
- 开启快捷菜单之后,默认情况下列表项与 toolbar 配置匹配
- 支持用户自定义快捷菜单列表的选项
What does the proposed API look like
如上
What is your project name
Wiki
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 the slash shortcut menu and Toolbar configuration entry points in the TypeScript editor code. Trace how the menu is enabled and how its current hard-coded items are selected. Done means the menu is opt-in, its default items follow the Toolbar configuration, and users can provide a custom item list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100