halo/ui/packages/editor
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
..
docs fix: resolving the issue of the draggable extension not working in the editor (#5570) 2024-03-27 04:26:06 +00:00
src pref: optimize the toolbar space and fold the same type of function (#5683) 2024-04-18 09:30:06 +00:00
.eslintrc.cjs Move folder console to ui 2024-02-02 22:22:51 +08:00
.gitignore Move folder console to ui 2024-02-02 22:22:51 +08:00
.release-it.json Move folder console to ui 2024-02-02 22:22:51 +08:00
env.d.ts Move folder console to ui 2024-02-02 22:22:51 +08:00
index.html Move folder console to ui 2024-02-02 22:22:51 +08:00
package.json pref: optimize the rich text editor link paste logic (#5680) 2024-04-13 00:50:08 +00:00
postcss.config.js Move folder console to ui 2024-02-02 22:22:51 +08:00
prettier.config.js Move folder console to ui 2024-02-02 22:22:51 +08:00
tailwind.config.js Move folder console to ui 2024-02-02 22:22:51 +08:00
tsconfig.app.json Move folder console to ui 2024-02-02 22:22:51 +08:00
tsconfig.json Move folder console to ui 2024-02-02 22:22:51 +08:00
tsconfig.node.json Move folder console to ui 2024-02-02 22:22:51 +08:00
tsconfig.vitest.json Move folder console to ui 2024-02-02 22:22:51 +08:00
vite.config.ts Move folder console to ui 2024-02-02 22:22:51 +08:00
vite.lib.config.ts Move folder console to ui 2024-02-02 22:22:51 +08:00