[web-php] master: Disable spellchecker for interactive code examples (#1176)
| From: | Tim Düsterhus via GitHub | Date: | Wed, 04 Dec 2024 01:36:01 +0000 |
| Subject: | [web-php] master: Disable spellchecker for interactive code examples (#1176) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-32450@lists.php.net to get a copy of this message | ||
Author: Tim Düsterhus (TimWolla)
Committer: GitHub (web-flow)
Pusher: sy-records
Date: 2024-12-04T09:31:12+08:00
Commit: https://github.com/php/web-php/commit/621bcce3c2013db6980765c656aa714d7018b1b0
Raw diff: https://github.com/php/web-php/commit/621bcce3c2013db6980765c656aa714d7018b1b0.diff
Disable spellchecker for interactive code examples (#1176)
Changed paths:
M js/interactive-examples.js
Diff:
diff --git a/js/interactive-examples.js b/js/interactive-examples.js
index b80c114b48..4c711928cc 100644
--- a/js/interactive-examples.js
+++ b/js/interactive-examples.js
@@ -57,6 +57,7 @@ async function main() {
}
const code = phpcode.querySelector("code");
+ code.spellcheck = false;
code.setAttribute("contentEditable", true);
button.innerText = "Run code";