Open Bug 1667372 Opened 8 months ago Updated 1 month ago

implement/expose "clear formatting/styling" in the compose window

Categories

(Thunderbird :: Message Compose Window, enhancement, P2)

enhancement

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&regexp=false

There is also Ctrl+Space (but undocumented).

We should probably use document.execCommand("removeFormat", false, "" );

Assignee: nobody → henry
See Also: → 1655014

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.

What's wrong with select, "Format > Remove All Text Styles". Works OK, but doesn't remove CSS, IIRC, see bug 1539110.

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.

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.

You need to log in before you can comment on or make changes to this bug.