From 3135e66fa88d710e314733a04c1979c0ce6dff43 Mon Sep 17 00:00:00 2001 From: Devesh Kumar Date: Wed, 6 Oct 2021 23:04:01 +0530 Subject: [PATCH] Disable spell check for textarea --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index d7506d9..cc4f7ab 100644 --- a/src/index.js +++ b/src/index.js @@ -91,6 +91,7 @@ export default class CodeTool { wrapper.classList.add(this.CSS.baseClass, this.CSS.wrapper); textarea.classList.add(this.CSS.textarea, this.CSS.input); textarea.textContent = this.data.code; + textarea.setAttribute("spellcheck", "false"); textarea.placeholder = this.placeholder;