为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

有帮助吗?

我要提问

您需要登录才能回复。如果您还没账号,可以提出新问题