Open Bug 370322 Opened 17 years ago Updated 3 years ago

Remove All Text Styles should also remove paragraph formatting (strip <h1> etc.)

Categories

(Core :: DOM: Editor, enhancement, P5)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: ggerard, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061206 Firefox/1.5.0.9
Build Identifier: version 2 beta 2 (20070116)

Compose new message.
Paste in from the browser some formatted text.

In the text I chose, I had some <h2> and <em>

Things with <em> were properly styled plain.

I expected <h2> to be similarly stripped.

I tried to get Thunderbird to forget completely about message style and force everything into just plain text through "Options->Format->Plain Text Only" (much like paste without formatting would). Nothing changed on the display at all and while I was typing, Thunderbird was putting text down in italics which was confusing. Worse, though it was laying down in italics, it'd removed all style control menus so I had to mouse around again to change it back to HTML, unstyle, then go back.

Finally, I created a new compose window, immediately changed it to text only, and then pasted the styled text in. And it came through in styled text in a font not the one in my compose preferences (I compose in fixed-width by default). Only pasting into a text-only message using paste without formatting gave me the fixed width outcome.

Reproducible: Always

Steps to Reproduce:
1. In details section.
Actual Results:  
Text had all sorts of styling.

Expected Results:  
When in text only mode, I expect the entire document to be treated as though the user had done "select all", copy, set message format to plain text, and paste without formatting.

It's a major headache for me as I'm always trying to work around Thunderbird and can't effect things through settings. Other mail clients seem more predictable in this area (Apple Mail, Outlook).
A partial workaround is to not only Remove Text Styles, but also to change the Paragraph Format (while the entire text is selected) to Body Text (or Paragraph, if you prefer that).  This isn't complete: it doesn't remove list styles, blockquote, or justfication via <div align="..."> or <center>; but it does knock headers down to plain text (also <pre> and <address>).

This behavior is part of the basic editor -- you can see it Seamonkey Composer and NVu as well.
Assignee: mscott → nobody
Severity: normal → enhancement
Component: Message Compose Window → Editor
OS: Windows XP → All
Product: Thunderbird → Core
QA Contact: message-compose
Hardware: PC → All
Summary: Composition behaves confusingly when trying to remove styles or change formats → Remove All Text Styles should also remove paragraph formatting (strip <h1> etc.)
Version: unspecified → Trunk
QA Contact: editor

Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.