搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Copy from Word to Web-forum via Firefox: Loss of formating

  • 4 回覆
  • 1 有這個問題
  • 135 次檢視
  • 最近回覆由 k2kellyirie

more options

Hi All, thanks for any help;

My issue is, I transfer a lot of long Word-97 generated text to various web-forums, which contain simple formatting (bold, italics, paragraph spacing, varied 'forum supported' fonts). When the text is copied, all the formatting is stripped in Firefox and only pasted as plain text.

Is there a way to copy and paste a document's text so the formatting is not removed?

p.s.: this is a browser issue, older browsers--like IE-11--copy the information fine (they have some paragraph vs. line issues (now, which is likely forum side), but otherwise work fine.)

Is there a way to paste text with formatting in firefox?

Thanks for your help!

K2

Hi All, thanks for any help; My issue is, I transfer a lot of long Word-97 generated text to various web-forums, which contain simple formatting (bold, italics, paragraph spacing, varied 'forum supported' fonts). When the text is copied, all the formatting is stripped in Firefox and only pasted as plain text. Is there a way to copy and paste a document's text so the formatting is not removed? p.s.: this is a browser issue, older browsers--like IE-11--copy the information fine (they have some paragraph vs. line issues (now, which is likely forum side), but otherwise work fine.) Is there a way to paste text with formatting in firefox? Thanks for your help! K2

被選擇的解決方法

cor-el said

I don't know whether Word can use inline CSS code instead of using a style sheet, but I've seen cases where Word wants to add a lot of (garbage) code when you paste formatted code which might break the form as it can exeed the maximum content issues. You can possibly check the source in the editor (i.e. switch from rendered to editing the source) if you paste that content in another browser to verify what is actually pasted.

You're speaking above my education (which doesn't take much :) ). I understand some of it (from when I built a simplistic website+forum years ago), but past that...

Anywho, all I can say in response is that perhaps 6/7 years ago I could straight copy and paste word text to any forum without issue. Newer forum styles came out, and there were issues--but those were forum side, the information pasted through and confused them. IE-11 will c/p all formatting (now with issues forum side), but FF does not (nor edge or chrome, which I assume is the issue--chrome based).

Your initial suggestion above helped, however. If I change doc paragraph spaces to blank lines, save my doc in HTML format, bring that up, select-all/c/p that, though it loses bold, it retains the line spacing (not indent) and italics...other formatting I can't say.

Hope that adds some clues, but I suspect it's simply a matter of me not keeping up with the times, Word style (sheets) and the like. In the end, it all just evolved past the simplicity of what was, no doubt for security and better educated web users.

Thanks for your help, but I'll close this out to not waste more of your time.

Thanks so much for the responses!

K2

從原來的回覆中察看解決方案 👍 0

所有回覆 (4)

more options

Pasting formatted HTML content only works in Firefox if inline CSS code is used (<b>bold</b>, <i>italics</i>) and not with an embedded style sheet as Word probably uses.

由 cor-el 於 修改

more options

cor-el said

Pasting formatted HTML content only works in Firefox if inline CSS code is used (<b>bold</b>, <i>italics</i>) and not with an embedded style sheet as Word probably uses.

Not the answer I hoped for, but if that's how it is, that's how it is. Thanks for the response.

K2

more options

I don't know whether Word can use inline CSS code instead of using a style sheet, but I've seen cases where Word wants to add a lot of (garbage) code when you paste formatted code which might break the form as it can exeed the maximum content issues.

You can possibly check the source in the editor (i.e. switch from rendered to editing the source) if you paste that content in another browser to verify what is actually pasted.

more options

選擇的解決方法

cor-el said

I don't know whether Word can use inline CSS code instead of using a style sheet, but I've seen cases where Word wants to add a lot of (garbage) code when you paste formatted code which might break the form as it can exeed the maximum content issues. You can possibly check the source in the editor (i.e. switch from rendered to editing the source) if you paste that content in another browser to verify what is actually pasted.

You're speaking above my education (which doesn't take much :) ). I understand some of it (from when I built a simplistic website+forum years ago), but past that...

Anywho, all I can say in response is that perhaps 6/7 years ago I could straight copy and paste word text to any forum without issue. Newer forum styles came out, and there were issues--but those were forum side, the information pasted through and confused them. IE-11 will c/p all formatting (now with issues forum side), but FF does not (nor edge or chrome, which I assume is the issue--chrome based).

Your initial suggestion above helped, however. If I change doc paragraph spaces to blank lines, save my doc in HTML format, bring that up, select-all/c/p that, though it loses bold, it retains the line spacing (not indent) and italics...other formatting I can't say.

Hope that adds some clues, but I suspect it's simply a matter of me not keeping up with the times, Word style (sheets) and the like. In the end, it all just evolved past the simplicity of what was, no doubt for security and better educated web users.

Thanks for your help, but I'll close this out to not waste more of your time.

Thanks so much for the responses!

K2