Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear inline elements can work without selection #8546

Closed
loopodi opened this issue Jun 15, 2023 · 7 comments
Closed

Clear inline elements can work without selection #8546

loopodi opened this issue Jun 15, 2023 · 7 comments
Assignees
Milestone

Comments

@loopodi
Copy link

loopodi commented Jun 15, 2023

In what scenarios do you need this feature?

目前清除样式功能必须先选中文字。

带格式的文字可以在末尾按相应的快捷键取消之后的文字格式,
如果清除样式也有这样的操作逻辑的话,就能用统一的快捷键在光标处清除之后的样式,而无需考虑当前样式的快捷键。
特别是文字本身有多重样式时,这样取消样式更便捷。

Describe the optimal solution

清除样式快捷键允许在字符边界处使用

Describe the candidate solution

No response

Other information

No response

@Vanessa219
Copy link
Member

Vanessa219 commented Jun 15, 2023

没太明白你的意思,比如粗体,在后面 ctrl+b 后会取消粗体。红色字体后面无需清除样式继续输入也是正常的文本。

如果需要清除整个红色字体的话是需要选中的,粗体也是需要选中后 ctrl+b 才会取消的。

@loopodi
Copy link
Author

loopodi commented Jun 15, 2023

就是说前面无论什么样式,按下清除样式快捷键,光标之后新打的文字就变正常了。
这样做的好处是:不用选中文字,用固定的快捷键清除,还能一次性清除多重样式。而且这与目前逻辑一致。

行内代码也好,同时带背景色和文字色也好,都能用统一的快捷键来跳出。

@Vanessa219
Copy link
Member

现在不按清除打出来的也是普通文本。

@loopodi
Copy link
Author

loopodi commented Jun 16, 2023

像这样有加粗,斜体,标记的样式,在光标之后打出来的是带样式的:
text

用快捷键的话,要把所有对应样式快捷键按一遍,才能打出普通文本。
如果允许在光标处使用清除样式快捷键,无论什么情况,都能一键跳出。

@Vanessa219
Copy link
Member

你这个是粗体、斜体等等的行内元素的组成的了,清除样式顾名思义只是清除样式(字号,大小,背景,颜色),清除不了这些行内元素。

@loopodi
Copy link
Author

loopodi commented Jun 16, 2023

工具栏上的那个清除样式,就是默认快捷键 ctrl+\ 那个,不是可以清除一切样式吗?包括行内样式。

现在只是允许这个快捷键在光标处可用。

@Vanessa219
Copy link
Member

哦,抱歉,我理解为这个去了。可能需要修改一下文案来进行区分。
image

@Vanessa219 Vanessa219 reopened this Jun 16, 2023
@Vanessa219 Vanessa219 self-assigned this Jun 16, 2023
@Vanessa219 Vanessa219 added this to the 2.9.2 milestone Jun 16, 2023
@Vanessa219 Vanessa219 changed the title 清除样式快捷键允许在字符边界处使用 Clear inline elements can work without selection Jun 16, 2023
Vanessa219 added a commit that referenced this issue Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants