You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/09/14 20:30:39 UTC

[05/13] allura git commit: [#7955] update spellChecker comment

[#7955] update spellChecker comment


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/523674d1
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/523674d1
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/523674d1

Branch: refs/heads/db/7955
Commit: 523674d166b6ec4a0ee20fa145bca5d1b14666be
Parents: 9caf8b7
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Wed Sep 2 18:27:07 2015 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Mon Sep 14 18:29:39 2015 +0000

----------------------------------------------------------------------
 Allura/allura/lib/widgets/resources/js/sf_markitup.js | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/523674d1/Allura/allura/lib/widgets/resources/js/sf_markitup.js
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/resources/js/sf_markitup.js b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
index 81d1305..46b4046 100644
--- a/Allura/allura/lib/widgets/resources/js/sf_markitup.js
+++ b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
@@ -58,17 +58,7 @@ $(window).load(function() {
             var editor = new SimpleMDE({
               element: $textarea[0],
               autofocus: false,
-              /*
-               * spellChecker: false is important!
-               * It's enabled by default and consumes a lot of memory and CPU
-               * if you have more than one editor on the page. In Allura we
-               * usually have a lot of (hidden) editors on the page (e.g.
-               * comments). On my machine it consumes ~1G of memory for a page
-               * with ~10 comments.
-               * We're using bleeding age 1.4.0, we might want to
-               * re-check when more stable version will be available.
-               */
-              spellChecker: false,
+              spellChecker: false, // https://forge-allura.apache.org/p/allura/tickets/7954/
               indentWithTabs: false,
               tabSize: 4,
               toolbar: toolbar