<p dir="auto">Richtext preview loading animation was added in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/eb789dbf757e760e8348e0aa75343eb53996b7e3/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/eb789dbf757e760e8348e0aa75343eb53996b7e3"><tt>eb789db</tt></a> but later probably got broken. Its <code class="notranslate">loading</code> css class was removed in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/df1ec6b6809b533829fc2c171699540bbb92a85b/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/df1ec6b6809b533829fc2c171699540bbb92a85b"><tt>df1ec6b</tt></a> but javascript still adds/removes it to no effect.</p>
<p dir="auto">This PR adds a Bootstrap spinner to the preview pane.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/41f925ce-66b3-4149-abcc-5033e26ecb0b">image.png (view on web)</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5311'>https://github.com/openstreetmap/openstreetmap-website/pull/5311</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5311/commits/a05692a3f6f0be293ff73aec04b32fcaf76f97ce" class="commit-link">a05692a</a>  Restore loading spinner in richtext previews</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5311/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5311/files#diff-0d7657292b610e8871d2d00d8468108ac06888d1033743b7e645dc87e9bfec71">app/assets/javascripts/richtext.js</a>
    (14)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5311/files#diff-37a91b9b8a670076e653c22c9f2009388c0204f378bebe5bb625414400d75010">app/views/shared/_richtext_field.html.erb</a>
    (9)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5311.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5311.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5311.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5311.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5311">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPOQXI6UKIYKK2K7O3Z7STLHAVCNFSM6AAAAABRNLRRP2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGY2DGOBYGYZDCMQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKSCBVSPMEJDEWMJBTZ7STLHA5CNFSM6AAAAABRNLRRP2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJ3FUAQQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5311</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5311",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5311",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>