Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Zac 223 posts 575 karma points
    Aug 03, 2017 @ 16:15
    Zac
    1

    TinyMCE media picker UDI data attribute

    Hi folks,

    We were wondering what the purpose of the udi data attribute is on images that are added into TinyMCE, e.g.:

    data-udi="umb://media/7cda1b1dc46c46f9a9d88d2d30f173a7"

    We had assumed that this UDI would keep the image src up to date, when the media item gets updated, or at the very least when the page is published again.

    However that doesn't seem to be the case - the image src attribute never seems to get updated in any of the scenarios we tried.

    Is this a WIP for the future, or are we missing a trick?

    Bonus question - is there a way to force the src attribute URL to use an absolute path rather than a relative one?

  • Dan Diplo 1554 posts 6205 karma points MVP 5x c-trib
    Aug 04, 2017 @ 08:39
    Dan Diplo
    1

    Good question - I was wondering this myself. Unfortunately we'll need someone from the core team to really answer this, so let's hope they might read this!

  • Dave Woestenborghs 3504 posts 12133 karma points MVP 8x admin c-trib
    Aug 04, 2017 @ 08:53
    Dave Woestenborghs
    100

    Hi Guys,

    I think it's there for the following reason.

    • Insert a image in the RTE
    • Select the image in the RTE
    • Click on the insert image button again. Now you see the correct media item opened. I think that's why the UDI is needed.

    Dave

  • Zac 223 posts 575 karma points
    Aug 04, 2017 @ 10:56
    Zac
    0

    Thanks Dave, that would make a lot of sense.

    Hopefully in the future pipeline we can keep the image sources up to date when things change, such as an image file being replaced.

    Does anyone know how to force those source attributes to be absolute URLs?

Please Sign in or register to post replies

Write your reply to:

Draft