<p dir="auto">See the discussion at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2483003010" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5111" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5111/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5111">#5111</a> and <a href="https://turbo.hotwired.dev/handbook/building#installing-javascript-behavior" rel="nofollow">this Turbo Handbook section</a>.</p>
<p dir="auto">Things that are installed once in <code class="notranslate">$(document).ready()</code>:</p>
<ul dir="auto">
<li>delegated Bootstrap tab events</li>
<li>window resize listener</li>
</ul>
<p dir="auto">Things that are installed in <code class="notranslate">$(document).on("turbo:load")</code>:</p>
<ul dir="auto">
<li>textarea listeners because can't delegate <code class="notranslate">invalid</code> events</li>
<li>help updater that moves the help card between a tab pane and a sidebar is called once</li>
</ul>

<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/5116'>https://github.com/openstreetmap/openstreetmap-website/pull/5116</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5116/commits/7223d79e2fb4bd4e5e215b9856ee6206ed8da497" class="commit-link">7223d79</a>  Adapt richtext javascript to Turbo</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5116/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5116/files#diff-0d7657292b610e8871d2d00d8468108ac06888d1033743b7e645dc87e9bfec71">app/assets/javascripts/richtext.js</a>
    (93)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5116.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5116.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5116.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5116.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/5116">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJ4R4M6V5E7M6QDCFLZTCONRAVCNFSM6AAAAABNBVGYGCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DINRVGY3DGMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJRFNEWOT4XSMKG4HTZTCONRA5CNFSM6AAAAABNBVGYGCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJIGGZ7E.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/5116</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/5116",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5116",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>