halo/ui/packages
Takagi ac6896d0f3
pref: optimize the toolbar space and fold the same type of function (#5683)
#### What type of PR is this?

/kind improvement
/area editor
/milestone 2.15.x

#### What this PR does / why we need it:

本 PR 对富文本编辑器中工具栏和冒泡菜单进行精简。

- 对默认富文本冒泡菜单及顶部工具栏相同类型的功能进行了折叠。
- 删除在 text 的冒泡菜单中,不属于当前选中文本的功能,例如转换为代码块等,这些实际上是段落的功能,并非是文本的功能。而 textAlign 目前也仅仅用在标题和行上,因此也移除。

#### How to test it?

查看默认富文本编辑器工具栏中,折叠的功能是否正常。选中文本,查看文本中是否不包含段落相关的功能。

#### Which issue(s) this PR fixes:

Fixes #5669 

#### Does this PR introduce a user-facing change?
```release-note
对默认富文本编辑器中的工具栏进行折叠及精简优化。
```
2024-04-18 09:30:06 +00:00
..
api-client Prepare for developing 2.15.0 (#5635) 2024-04-02 02:20:07 +00:00
components Prepare for developing 2.15.0 (#5635) 2024-04-02 02:20:07 +00:00
editor pref: optimize the toolbar space and fold the same type of function (#5683) 2024-04-18 09:30:06 +00:00
shared Prepare for developing 2.15.0 (#5635) 2024-04-02 02:20:07 +00:00
ui-plugin-bundler-kit Prepare for developing 2.15.0 (#5635) 2024-04-02 02:20:07 +00:00