feat(toolbar): add one-click clear format button with separate Tx icon#144
Open
lihehe11 wants to merge 1 commit into
Open
feat(toolbar): add one-click clear format button with separate Tx icon#144lihehe11 wants to merge 1 commit into
lihehe11 wants to merge 1 commit into
Conversation
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
为编辑器工具栏新增一键清除文本格式按钮,剥离选中内容所有Markdown富文本样式,使用独立 T× 图标区分功能。
Changes / 修改内容
packages/plugin-toolbar/src/icons.ts:新增iconClearFormat工具图标,显示 T×packages/plugin-toolbar/src/formatting.ts:实现clearAllFormat函数,通过原生接口剔除 * _ ` # 等格式标记packages/plugin-toolbar/src/toolbar-ui.ts:在文字颜色分组末尾新增清除格式按钮,UI风格与现有组件统一Test / 自测验证
**加粗** _斜体_ ==高亮==选中后一键清除样式Screenshot / 效果截图