Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable autocorrect / autocompletion in content editable div

I m developing a cross-browser application in Script#. I m using a contenteditable div, where user can add text. But i dont want the auto correct/ auto completion feature to change the user text.

Plz tell me how can i disable this feature. It should work on all platforms. ( iOS, Android, Windows)

I have tried autocorrect="off"; autocomplete="off"

but nothing is working. plz help....

like image 242
Kpatel1989 Avatar asked Jan 16 '14 13:01

Kpatel1989


1 Answers

What you can do is to use the attribute spellcheck=false. This is (in HTML5 CR) the defined way to disable “checking of spelling and grammar of editable text”. The default value of this element is browser-dependent, and the value may depend on element. E.g., in Chrome, the default is spellcheck=true for an element that has been made editable using the contenteditable attribute.

However, this affects (at most) only what happens in the browser. Software external to the browser, such as a system’s keyboard reading routines, are probably immune to anything you say in HTML.

like image 85
Jukka K. Korpela Avatar answered Sep 27 '22 18:09

Jukka K. Korpela