From 5e5d122332b76ac4fd023bd3a8196da705c7c34b Mon Sep 17 00:00:00 2001 From: DanyaPostfactum Date: Tue, 2 Oct 2012 00:37:56 +1000 Subject: [PATCH] Disable spellcheck in textarea, set wrap property instead of attribute --- lib/ace/keyboard/textinput.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index e41f3152..4f5ef1e4 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -46,7 +46,8 @@ var TextInput = function(parentNode, host) { if (useragent.isTouchPad) text.setAttribute("x-palm-disable-auto-cap", true); - text.setAttribute("wrap", "off"); + text.wrap = "off"; + text.spellcheck = false; text.style.top = "-2em"; parentNode.insertBefore(text, parentNode.firstChild);