Skip to content

Commit

Permalink
Disable spellchecker for interactive code examples (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla authored Dec 4, 2024
1 parent 9d71cdb commit 621bcce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/interactive-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async function main() {
}

const code = phpcode.querySelector("code");
code.spellcheck = false;
code.setAttribute("contentEditable", true);

button.innerText = "Run code";
Expand Down

0 comments on commit 621bcce

Please sign in to comment.