• Resolved zxb2

    (@zxb2)


    Hi,

    I have a problem with the WYSIWYG editor in WP 2.6 — it is truncating URL paths when I directly copy / paste images.

    For an example:

    <img src=”http://exophase.com/images/misc/playstation-2.jpg&#8221; border=”0″ alt=”” />

    is outputted as

    <img src=”../images/misc/playstation-2.jpg” border=”0″ alt=”” />

    after the paste. I’ve noticed this only happens when an image is copied from the source domain. If I copy an image from let’s say, Wikipedia, it will retain the full URL.

Viewing 2 replies - 1 through 2 (of 2 total)
  • this is not WordPress that is doing it .

    The site from which you copy the images is a dynamic site, much like WordPress, and it gives the images a relative path.
    When you copy an image, you also copy it’s path, but in this case, the RELATIVE path to the local server of the website.
    To resolve this problem, copy the URL of the image as you see it on your browser’s address bar, and not the image itself, and then paste it into wordpress (with the insert image command)

    Thread Starter zxb2

    (@zxb2)

    The site from which you copy the images is a dynamic site, much like WordPress, and it gives the images a relative path.

    That wasn’t it but you are right, after further testing, I’ve found that it is not a WordPress issue. For some reason, Firefox is the culprit. When copying / pasting the exact same image to the WP editor, this problem did not occur in Internet Explorer or Google Chrome. With Firefox, it changes the URL into a relative path.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress 2.6 WYSIWYG truncating image paths’ is closed to new replies.