implement/expose "clear formatting/styling" in the compose window
Categories
(Thunderbird :: Message Compose Window, enhancement, P2)
Tracking
(Not tracked)
People
(Reporter: mkmelin, Assigned: henry)
References
Details
A super common annoyance and complaint talking to people is that there are many situations (copy paste, or while replying) that you end up with mixed fonts or font styles.
We should have a button on the toolbar that let's you easily clear up such styling but keeps the structural markup that was there.
Filing this bug I notice we have a cmd_removeStyles command for this, partly working.
https://searchfox.org/comm-central/search?q=cmd_removeStyles&path=&case=false®exp=false
| Reporter | ||
Comment 1•1 month ago
|
||
There is also Ctrl+Space (but undocumented).
We should probably use document.execCommand("removeFormat", false, "" );
| Reporter | ||
Comment 2•1 month ago
|
||
Potentially we'd want to also detect if people have mixed fonts from pasting, and offer to fix it for them. As a second step.
Comment 3•1 month ago
|
||
What's wrong with select, "Format > Remove All Text Styles". Works OK, but doesn't remove CSS, IIRC, see bug 1539110.
| Reporter | ||
Comment 4•1 month ago
|
||
I never saw that. https://searchfox.org/comm-central/rev/7ed718c90a58141a74da3acbf3f97ad8854e5561/mail/components/compose/content/editor.js#1981
Apparently i need to select all the text to get it to show up.
So, at least there's much room for improving the discoverability of that.
| Reporter | ||
Comment 5•1 month ago
|
||
There's not really much reason such an option/button couldn't show all the time, and remove from the whole entered text if executed.
Description
•