<p dir="auto">Before you'd click the submit button and nothing would happen if the text is invalid:<br>
<a href="https://github.com/user-attachments/assets/579ee9fc-2173-4d79-a152-4207d0746cb0">image.png (view on web)</a></p>
<p dir="auto">With this PR the <em>Edit</em> pane shows which lets you see the validation message:<br>
<a href="https://github.com/user-attachments/assets/60691d63-0782-49c6-a5b5-7154d870bd4d">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/5075'>https://github.com/openstreetmap/openstreetmap-website/pull/5075</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5075/commits/8498d0d6a817b8dd3d4ca25fbd532284f0fa3220" class="commit-link">8498d0d</a> Switch to edit pane if rich text field validation fails</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5075/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5075/files#diff-0d7657292b610e8871d2d00d8468108ac06888d1033743b7e645dc87e9bfec71">app/assets/javascripts/richtext.js</a>
(4)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5075/files#diff-f48b1f158d96cdcac184e741022ba06c4cfd9721b20a27d2169f93a22c1e2468">test/system/rich_text_test.rb</a>
(16)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5075.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5075.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5075.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5075.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/5075">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPSYVF4FWTLBASJLC3ZRNRW5AVCNFSM6AAAAABMQOWJFKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3DKOJZGU4DANQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJAMH7UAFAFL3K5DULZRNRW5A5CNFSM6AAAAABMQOWJFKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJF7A4DY.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/5075</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/5075",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5075",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>