allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject allura git commit: [#8040] helper _replaceSelection is private in newer simplemde
Date Wed, 27 Apr 2016 18:33:59 GMT
Repository: allura
Updated Branches:
  refs/heads/db/8040 358140025 -> b960838bf


[#8040] helper _replaceSelection is private in newer simplemde


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

Branch: refs/heads/db/8040
Commit: b960838bf780c7827e969e7c75a325973aaf118d
Parents: 3581400
Author: Dave Brondsema <dave@brondsema.net>
Authored: Wed Apr 27 14:33:51 2016 -0400
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Wed Apr 27 14:33:51 2016 -0400

----------------------------------------------------------------------
 Allura/allura/lib/widgets/resources/js/sf_markitup.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/b960838b/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 728f0f3..62f99b2 100644
--- a/Allura/allura/lib/widgets/resources/js/sf_markitup.js
+++ b/Allura/allura/lib/widgets/resources/js/sf_markitup.js
@@ -102,11 +102,12 @@ $(window).load(function() {
 
             function drawTable(editor) {
               var cm = editor.codemirror;
-              _replaceSelection(cm, false, '',
+              cm.replaceSelection(
                 'Header | Header | Header\n' +
                 '---------- | ---------- | ------ \n' +
                 'Cell      | Cell       | Cell \n' +
                 'Cell      | Cell       | Cell ');
+              cm.focus();
             }
 
             function show_help(editor) {


Mime
View raw message