diff --git a/Allura/allura/lib/widgets/resources/js/sf_markitup.js b/Allura/allura/lib/widgets/resources/js/sf_markitup.js index e233e3d9b7..831e07631e 100644 --- a/Allura/allura/lib/widgets/resources/js/sf_markitup.js +++ b/Allura/allura/lib/widgets/resources/js/sf_markitup.js @@ -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,