From b1d999cfc11ac787ed2e49dfc9ea81dcb4628dfb 2013-03-28 05:16:41 From: MinRK Date: 2013-03-28 05:16:41 Subject: [PATCH] set `spellcheck=false` in CodeCell inputarea prevents autocorrect from firing in Safari (weirdly, autocorrect does not have this effect). Note: must be `false`, not `off` closes #3087 --- diff --git a/IPython/frontend/html/notebook/static/js/codecell.js b/IPython/frontend/html/notebook/static/js/codecell.js index d3b25ea..3a19cf2 100644 --- a/IPython/frontend/html/notebook/static/js/codecell.js +++ b/IPython/frontend/html/notebook/static/js/codecell.js @@ -120,6 +120,7 @@ var IPython = (function (IPython) { vbox.append(this.celltoolbar.element); var input_area = $('
').addClass('input_area'); this.code_mirror = CodeMirror(input_area.get(0), this.cm_config); + $(this.code_mirror.getInputField()).attr("spellcheck", "false"); vbox.append(input_area); input.append(vbox); var output = $('
');