為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

pasting in HTML code that has attachments

  • 7 回覆
  • 0 有這個問題
  • 20 次檢視
  • 最近回覆由 sfhowes

more options

Greetings.

For lack of anything better I'm using TBird as an HTML editor.

I'm writing a rather long paper that includes many images. Backing up as I go, I use the 'Export Message As > HTML Format > Messages And Attachments' ... and it works fine and processes the images this way:

Anyway -- this is kinda hard to explain -- as long as I was 'working within TBird' everything was fine, but I ended up modifying my HTML via text editor to do a few things that were impossible to do in the graphical TBird screen (tweaking some math equations). So now my draft message needed to be updated with the new HTML. I use 'Insert > HTML' and paste in the entire contents of my paper and then Send it to myself. I get it back, open it and there's no images, just blank boxes.

But ... and this is interesting ... if I then take that message and save it again as HTML (as above) then if I view that HTML in FireFox, voila! It shows the images. So how can I take my HTML, import it to an email and then 'Edit As New Message' or whatever trick is needed to have the paper back with it's images intact? I hope that's not too confusing.

Greetings. For lack of anything better I'm using TBird as an HTML editor. I'm writing a rather long paper that includes many images. Backing up as I go, I use the 'Export Message As > HTML Format > Messages And Attachments' ... and it works fine and processes the images this way: <img src="EmbeddedImages-3/0.jpg" class="" width="800" height="682"> Anyway -- this is kinda hard to explain -- as long as I was 'working within TBird' everything was fine, but I ended up modifying my HTML via text editor to do a few things that were impossible to do in the graphical TBird screen (tweaking some math equations). So now my draft message needed to be updated with the new HTML. I use 'Insert > HTML' and paste in the entire contents of my paper and then Send it to myself. I get it back, open it and there's no images, just blank boxes. But ... and this is interesting ... if I then take that message and save it again as HTML (as above) then if I view that HTML in FireFox, voila! It shows the images. So how can I take my HTML, import it to an email and then 'Edit As New Message' or whatever trick is needed to have the paper back with it's images intact? I hope that's not too confusing.

所有回覆 (7)

more options

Opps, sorry my HTML code was acted upon above. Try again:

img src="EmbeddedImages-3/0.jpg" class="" width="800"

       height="682"

由 rayandrews 於 修改

有幫助嗎?

more options

Hmm, I'm not sure why Firefox can connect the dots between the inline image tag and the image file, but Thunderbird cannot. It's possible that Firefox has a cached version of the image from a previous save, and if you were to open the HTML file in a private window -- where the regular window cache isn't used -- it would have the same situation as Thunderbird. But that's just a guess.

I think the cleanest thing would be to manually add the images back to the message in Thunderbird, but if there are too many, then copy/pasting from Firefox might work. ???

有幫助嗎?

more options

You could save a message as an eml file, open it in a text editor to edit the html, then import it to TB by drag and drop to a subfolder of Local Folders. It might be easier to just use a better editor than the TB default:

https://addons.thunderbird.net/en-US/thunderbird/addon/html-source-editor/

有幫助嗎?

more options

> I'm not sure why Firefox can connect the dots between the inline image tag and the image file, but Thunderbird cannot.

I think it's because I have to open the HTML were the code can find the directory where the images are found, but the email message has no way of doing that. I know there's a way that HTML can have the images within the file itself, not in a directory. I'm betting that would paste into an email with no issues.

> It might be easier to just use a better editor than the TB default:

Thanks, I'll check that out.

有幫助嗎?

more options

Yeah, what I should have done is save as .eml, that way the images are built in to the file. So I did a text compare of the .html and the last-best .eml, just copied over the needed changes, and it seems fine.

Main difference is the way the images are handled:

    img src="cid:part1.njs0TyN0.k8P4a38b@eastlink.ca" class=""

Thanks guys.

BTW, the reason I converted to saving as .html is because my text editor will highlight the code, but not with .eml ... I guess I should just do a dummy temporary rename of .eml to .html when I need to do a text edit, then back again.

由 rayandrews 於 修改

有幫助嗎?

more options

BTW I can't add the addon, the 'Add' button refuses to click. I've noticed that problem before.

有幫助嗎?

more options

Yes, the add-on installation bug for some Linux types has been around for a while.

https://bugzilla.mozilla.org/show_bug.cgi?id=1829370

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題