Skip to content

Commit 4ceba9f

Browse files
committed
editor: disable spell checking (fix #34)
1 parent 7e74211 commit 4ceba9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/editor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class CodeElement extends EventTarget {
3838
// otherwise, enable basic editing features
3939
// make the element editable
4040
this.el.contentEditable = "true";
41+
// disable spell checking and auto-correction
42+
this.el.spellcheck = false;
4143
// indent on Tab
4244
this.el.addEventListener("keydown", this.handleIndent.bind(this));
4345
// hide output on Esc

0 commit comments

Comments
 (0)