From e54882db64e20da55ff06f15acb452798fc3f2ae Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 7 Dec 2014 01:08:06 +0400 Subject: [PATCH] use setAttribute instead of autocorrect setter, since the setter doesn't work on ipad --- lib/ace/keyboard/textinput.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index c0902e27..605f5b8e 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -45,10 +45,10 @@ var TextInput = function(parentNode, host) { if (useragent.isTouchPad) text.setAttribute("x-palm-disable-auto-cap", true); - text.wrap = "off"; - text.autocorrect = "off"; - text.autocapitalize = "off"; - text.spellcheck = false; + text.setAttribute("wrap", "off"); + text.setAttribute("autocorrect", "off"); + text.setAttribute("autocapitalize", "off"); + text.setAttribute("spellcheck", false); text.style.opacity = "0"; if (useragent.isOldIE) text.style.top = "-100px";