Skip to content

Commit

Permalink
[#8260] [#7954] allow spellchecker on desktop; but keep better experi…
Browse files Browse the repository at this point in the history
…ence on Android
  • Loading branch information
brondsem committed Oct 30, 2020
1 parent 67838e0 commit 3e2f085
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Allura/allura/lib/widgets/resources/js/sf_markitup.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ $(window).load(function() {
autofocus: false,
spellChecker: false, // https://forge-allura.apache.org/p/allura/tickets/7954/
indentWithTabs: false,
inputStyle: 'contenteditable',
// contenteditable allows native spellcheck and works fine for desktop browsers and ios (14)
// but its buggy on android and textarea works better https://github.com/codemirror/CodeMirror/issues/6349 https://github.com/codemirror/CodeMirror/issues/6145
inputStyle: navigator.userAgent.match(/Android/i) ? 'textarea' : 'contenteditable',
tabSize: 4,
toolbar: toolbar,
previewRender: previewRender,
Expand Down

0 comments on commit 3e2f085

Please sign in to comment.