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";

Reply via email to