Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter maxellinger

    (@maxellinger)

    Thanks for the response! Here is the code I wrote to accommodate every, single, darn, case in case it’s helpful to someone down the line:

    https://gist.github.com/mellinger/b337f3eea37601f10701dc45a7af6183

    Thread Starter maxellinger

    (@maxellinger)

    Thanks for responding! They were using the TinyMCE (“Classic”) editor.

    There’s clearly more markup in the database than what appears when I view as HTML, because the frontend display contains a reference to the original image while the HTML editor just shows a pretty vanilla tag.

    Here’s an example of the frontend markup, see how the original is referenced and exists in the CDN but the src value is set to a specific, legacy size that didn’t get generated on import.

    How it exists on the frontend:

    <img decoding="async" data-attachment-id="4975" data-permalink="https://news.vumc.org/Hope/meet-the-people-who-bring-hope-to-families-every-day/pioneer1-7/" data-orig-file="https://vumc-reporter.s3.amazonaws.com/uploads/pioneer1-5.jpg" data-orig-size="1417,1416" data-comments-opened="0" data-image-meta="{&quot;aperture&quot;:&quot;2.8&quot;,&quot;credit&quot;:&quot;Susan Urmy&quot;,&quot;camera&quot;:&quot;Canon EOS 5D Mark IV&quot;,&quot;caption&quot;:&quot;Environmental portrait of Chetan Mukundan, MD, and his dog Brie at Radnor Lake for community pediatricians for Face of Hope profile for Hope magazine.\r\rPhotos by: Susan Urmy&quot;,&quot;created_timestamp&quot;:&quot;1638520211&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;200&quot;,&quot;iso&quot;:&quot;400&quot;,&quot;shutter_speed&quot;:&quot;0.0015625&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}" data-image-title="pioneer1" data-image-description="" data-image-caption="<p>Photo by Susan Urmy</p>
    " data-medium-file="https://vumc-reporter.s3.amazonaws.com/uploads/pioneer1-5-450x450.jpg" data-large-file="https://vumc-reporter.s3.amazonaws.com/uploads/pioneer1-5-790x790.jpg" tabindex="0" role="button" class="size-medium wp-image-4975" src="https://vumc-reporter.s3.amazonaws.com/uploads/pioneer1-5-300x300.jpg" alt="" width="300" height="300">

    How it exists in the editor:

    [caption id="attachment_4975" align="alignleft" width="300"]<img class="size-medium wp-image-4975" src="https://vumc-reporter.s3.amazonaws.com/uploads/pioneer1-5-300x300.jpg" alt="" width="300" height="300" /> Photo by Susan Urmy[/caption]
    Thread Starter maxellinger

    (@maxellinger)

    Thanks, Ryan! I had no idea that panel existed, and I am embarrassed. That is perfect, thank you.

    Thread Starter maxellinger

    (@maxellinger)

    @westonruter Fixed it perfectly, thank you.

    Thread Starter maxellinger

    (@maxellinger)

    Great, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)