When you copy a mixed content (text and images) and then want to paste it in another document the images are not pasted. In fact it looks like the images are not copied. Or probably not even selected with the function ctrl+A !!!
Steps to Reproduce:
1.Copy a mixed content (texte and images) from a writer document using the usual keyboard key combination ctrl+A and then ctrl+C
2.Paste the copied content in another document, for instance an email you are writing with thunderbird.
The texte is pasted but not the images
All the copied content, texte and images should be pasted
User Profile Reset: No
It works when not using LibreOffice Writer but MS Office Word :-/
If you use a clipboard viewer, like Free Clipboard Viewer, you can see that the HTML copied from Writer does *not* contain any images, so there is nothing to paste. You can copy a single image from Writer, but not text and image(s) together.
If you want to include part of a document in another document of email it is very painful if you have to then place all the images separately.
It was working properly before.
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0
Created attachment 133628 [details]
Build ID: d57e6cd9dcc96112994ca2b14ac45896e86b26e5
CPU threads: 4; OS: Windows 6.19; UI render: default;
TinderBox: Win-x86@42, Branch:master, Time: 2017-05-18_22:43:07
Locale: nl-NL (nl_NL); Calc: CL
Build ID: a4d4fbeb623013f6377b30711ceedb38ea4b49f8
CPU Threads: 4; OS Version: Windows 6.2; UI Render: GL;
TinderBox: Win-x86@62-merge-TDF, Branch:libreoffice-5-2, Time: 2016-12-24_14:43:55
Locale: nl-NL (nl_NL); Calc: CL
but not with
Build ID: 5e3e00a007d9b3b6efb6797a8b8e57b51ab1f737
CPU Threads: 4; OS Version: Windows 6.2; UI Render: default;
Locale: en-US (nl_NL)
This seems to have begun at the below commit.
Adding Cc: to Oliver Specht; Could you possibly take a look at this one? Thanks
5af3f34ff97a3e82648054e4cc5f67f40c39173b is the first bad commit
Author: Norbert Thiebaud <firstname.lastname@example.org>
Date: Sun Mar 27 21:51:16 2016 -0700
author Oliver Specht <email@example.com> 2016-03-18 14:57:17 (GMT)
committer Oliver Specht <firstname.lastname@example.org> 2016-03-23 13:57:16 (GMT)
commit 46fa816aa0a713c54836b9689fa7a1c9ff55ef5a (patch)
parent f9cf53a082f1d99b313ebd09c8791541859eac40 (diff)
tdf#63211: saving embedded images to HTML optional
This change re-introduces linked images in HTML export
but keeps embedded image export in mailmerge e-Mail function
Apparently the "original" behavior was a partly implemented feature/bugfix (since 4.2, see bug 63211) that had to be partly reverted/worked around with the commit identified by raal.
Removing keyword regression.
The original bugfix:
author Ciorba Edmond <email@example.com> 2013-07-03 13:14:45 (GMT)
committer Andras Timar <firstname.lastname@example.org> 2013-07-11 10:36:20 (GMT)
"fdo#63211 - embed images in HTML export."
I plan to look at this. The problem seems to be that non-embedded images need a non-empty base URL, but we don't have such during paste.
Sounds like this is indeed not a regression. Depending on the application, some (e.g. Thunderbird) started to have images after Edmond's commit, but not others (e.g. Word). Then Oliver's commit made this worse, making the images completely missing, back to how it was initially.
Word emits an HTML fragment like this:
<img width=395 height=262
We can do the same, emit references to tempfiles, then not only Thunderbird but more limited HTML parsers like Word will be happy as well.
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":
tdf#108122 HTML export: fix lost images on copy
It will be available in 6.1.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.