• Resolved msdpreneur

    (@msdpreneur)


    I’m trying to import a docx file with text and images. It appears correctly in the visual preview, but the images change to <img src=”path/to/image” /> in the HTML view and show as broken image links. I don’t see any errors on screen and I use Elementor for webpage template creation.

    I’m currently on WordPress 6.6.1 and am using Mammoth v 1.21.0. I’ve seen this question in a few support threads, but it doesn’t seem to have been resolved in them. Any help is much appreciated

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michael Williamson

    (@michaelwilliamson)

    Do you mean the preview that Mammoth provides, before actually performing the import? Or the preview provided by the editor after the import? Or the preview of the entire post itself?

    If you could take a screen recording or some screenshots showing what you’re doing and seeing, that might help to clarify things.

    Thread Starter msdpreneur

    (@msdpreneur)

    These are the steps I follow:

    1. I scroll down to docx converter and press Choose file
    2. I select the file and the preview loads under the editor
    3. Under Visual the images appear correctly, but when I select Raw HTML, all image paths are set as ‘<img src=”path/to/image” />’

    Here are screenshots for these steps:

    https://postimg.cc/mhhT7Ncd

    https://postimg.cc/30y77Y5M

    https://postimg.cc/xJpYWqZy

    I also tried disabling all plugins and still have the same issue.

    Plugin Author Michael Williamson

    (@michaelwilliamson)

    Ah, I see. The images haven’t yet been uploaded to the server, so the raw HTML preview shows a placeholder path. Once the document is imported, the images will be uploaded, and the paths to the images will be updated accordingly.

    Thread Starter msdpreneur

    (@msdpreneur)

    Thank you so much for your help. I think I figured it out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Images not appearing in HTML view (only preview)’ is closed to new replies.