[xwiki-users] Copy-Paste from Word loses images
I have the openoffice server configured to import from word docs and it does quite well. However a direct copy/past from word still loses the images while keeping much of the formatting. This is just how it is, correct? To preserve Word formatting and embedded images, the import process must be used? Or is there a workaround? It's not a show stopper just want to know if I'm missing anything. Possibly a later version of Word would work better, I've tried using 2003 and 2010. -- View this message in context: http://xwiki.475771.n2.nabble.com/Copy-Paste-from-Word-loses-images-tp760239... Sent from the XWiki- Users mailing list archive at Nabble.com.
First, you didn't mention what version of XWiki you're using. Then, you didn't mention which WYSIWYG editor you're using. GWT or CKEditor? Then, you can check the HTML (using the browser's inspector) right after you paste the content. The WYSIWYG editor is not filtering images so there can be 3 cases: * there's no img HTML tag because Word doesn't copy the image along with the content. There's nothing we can do in this case. * there is an img HTML tag which has as src attribute a file:// URL. There's nothing we can do in this case also. The image point to your local computer and the editor can't access it in order to upload it * there is an img HTML tag which has as src attribute an HTTP URL. The image should be visible in view mode. * there is an img HTML tag which has as src attribute a Data URI. The image should be visible in view mode. On Thu, Jan 12, 2017 at 7:23 PM, novnovice <[email protected]> wrote:
I have the openoffice server configured to import from word docs and it does quite well. However a direct copy/past from word still loses the images while keeping much of the formatting. This is just how it is, correct? To preserve Word formatting and embedded images, the import process must be used? Or is there a workaround? It's not a show stopper just want to know if I'm missing anything. Possibly a later version of Word would work better, I've tried using 2003 and 2010.
-- View this message in context: http://xwiki.475771.n2.nabble. com/Copy-Paste-from-Word-loses-images-tp7602397.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Thanks Marius. So, I infer that at least in some circustances XWiki will accept the images embedded in a word document. Great. This is xwiki 8.4.3; using the ckeditor which comes with the war install by default. I am not sure which of the options you outline might apply here. It is probably rhe first option you mention "there's no img HTML tag because Word doesn't copy the image along with the content"; how can I test that? I find that I cannot copy paste the doc with image to another instance of word; the images are lost, just like they are in xwiki paste. That surprised me. The images are "embedded" in the word document. I don't see a source attribute at all. Do you have any idea if Word can "offer" the embedded images for copy/paste? Learning something I didn't know about Word here. The same document will import using the openoffice feature. I guess they are not related features? I mean import and copy/paste of word documents? -- View this message in context: http://xwiki.475771.n2.nabble.com/Copy-Paste-from-Word-loses-images-tp760239... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Marius Dumitru Florea -
novnovice