Closed Bug 440997 Opened 17 years ago Closed 15 years ago

Copy to paste in OO or MS Word doesn't import format

Categories

(Firefox :: Shell Integration, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 303736

People

(Reporter: denis.bergeron, Unassigned)

References

()

Details

Attachments

(3 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9) Gecko/2008052906 Firefox/3.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9) Gecko/2008052906 Firefox/3.0 When tring to copy the table from a html page, all the format was lost when pasted in a OO or MS Office. Older version of Mozilla can copy color, table information, etc. so, the table will be paste with ALL the formatage in Word. Reproducible: Always Steps to Reproduce: 1.go to anypage with a table 2. select the table 3. paste it in your prefered word processor Actual Results: Any format are lost Expected Results: All format (including the table format) should be there
I sincerely don't know if it is a bug, perhaps it is a desirable behaviour. But I must agree that it is really annoying if you want to keep the formatted text, and just Ctrl-A, Ctrl-C, Ctrl-V. I am using firefox 3 and thunderbird 2.0.0.14 (20080505) in Ubuntu 8.04. I will also provide the files to reproduce. I've downloaded the files from http://www.nottingham.ac.uk/sedu/webforum/resources/css/, and modified them a little to reproduce the behaviour. 1. Save the files somewhere in your computer. 2. Double-click refers-arial-red.htm 3. Ctrl-A to select all 4. Open Thunderbird and in new message, Ctrl-N 5. Paste the content You will notice that the styles are lost, we don't have copied the external stylesheet file arial-red.css I have thought that it is something related to an external stylesheet file, so I have inserted the stylesheet creating a second file. Replacing the code: <link rel="stylesheet" href="arial-red.css"> to: <style type="text/css"> <!-- body {background-color: #ffeeee; font-family: Arial, Helvetica, sans-serif; color: #660000;} p {font-size: 0.9em; font-style: normal; font-weight: normal;} h1 {font-size: 1.1em; font-style: normal; font-weight: bold;} h2 {font-size: 1.1em; font-style: normal; font-weight: normal;} h3 {font-size: 1.0em; font-style: normal; font-weight: bold;} h4 {font-size: 1.0em; font-style: normal; font-weight: normal;} h5 {font-size: 0.9em; font-style: normal; font-weight: bold;} h6 {font-size: 0.9em; font-style: italic; font-weight: normal;} ul {font-size: 0.9em; font-style: normal; font-weight: normal;} ol {font-size: 0.9em; font-style: normal; font-weight: normal;} table {font-size: 0.9em; font-style: normal; font-weight: normal;} th {font-weight: bold;} --> </style> Double-click the second and still we don't copy the format, Ctrl-A, Ctrl-C, go to thunderbird composer (Ctrl-N in Thunderbird), and Ctrl-V we still don't have the formatted text. I presume the styles will be keeped just if it is an inline stylesheet. If the stylesheet is an internal stylesheet, but it is not inline. This will work: In Firefox, page opened, try Ctrl-U (open source), Ctrl-A, Ctrl-C goes to Thunderbird and Ctrl-N (new message), and "Insert HTML Source Code". This will preserve the formatted text. If the stylesheet is an external stylesheet, you will have to do the following In Firefox Save the complete webpage somewhere in your computer: File, Save As (webpage, complete), goes to the subfolder created _files, and copy the .css (pray for God there is just one), open in any simple text editor and copy everything = Ctrl-A, Ctrl-C Goes to Thunderbird, Ctrl-N, Insert HTML Source Code write <style type="text/css"> Ctrl-V (paste the css source code) write </style> now you go to the page html, you've copied and Ctrl-C the part you want to copy, preserving the format. Paste in the email composer. To work with OpenOffice and Word, I believe you should have to change the file changing the external stylesheet to internal, writing: write <style type="text/css"> Ctrl-V (paste the css source code) write </style> and then try to open the html with OpenOffice. For me it has worked with the files I will try to attached. I hope it would help you.
Attached file html file with external stylesheet (deleted) —
In order to reproduce the behaviour
Attached file html file with internal stylesheet (deleted) —
In order to test the behaviour
Attached file the external stylesheet (deleted) —
In order to reproduce the behaviour
(In reply to comment #1) > I sincerely don't know if it is a bug, perhaps it is a desirable behaviour. But It's a behavior change from FF1 and 2, and it is not desireable behavior. The clipboard should hold the html version as well as a plain-text version so that in a target app that accepts html (such as Thunderbird) one can choose Paste or Paste Without Formatting. It used to be that one could copy web pages in FF 2 and paste them into Thunderbird and all formatting would be retained. The fact that this is missing in FF 3 is a show-stopper for some. It would be a show-stopper for me except that I love FF so much compared to Safari that I am willing to run both browsers and use Safari when I need to copy a web page including the formatting tags. I've seen others on Mac talk lists note that they cannot use FF until this is fixed. Just the word from out here in the user trenches. kazar
(In reply to my own comment #5) Actually after more testing it seems the answer is not as simple as it may seem. Results of some quick tests: -- It is true that copying web pages from FF2 into Thunderbird emails used to retain formatting, whereas copying from FF3 and pasting into the same version of Thunderbird loses formatting. This is clearly a "loss of functionality" and IMO should be considered a bug and s.b. fixed -- It is not true that Safari pastes formatted text into Thunderbird, though. I was mistaken there. What I've been doing when I wish to copy a web page into T-bird is quit FF3 and launch FF2. Safari apparently copies web pages as rtf, and pastes into Apple Mail just fine (and mail uses rtf for formatted msgs) So sorry if my mentioning Safari in comment #5 was misleading. If you just copy from FF2, paste into T-Bird, then try the same using FF3, you'll see the behavioral change. Everywhere i've seen it mentioned it is considered undersireable change by end-users (like me). Thanks for all your hard work, programmers.
You're right Kazar, I expressed myself wrong it is really undesirable and it really prevents to move to FF3. And it is really a bug, perhaps someone could write at least an extension to copy formatted, while we are waiting.
thanks. maybe someone with privs can change this to Confirmed? I dont' think end-users like me can do so
Same as bug 428096?
(In reply to comment #9) > Same as bug 428096? No; this bug is on Windows, and that bug is Mac-only.
Reporter could be a dupe of bug #303736?
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: