allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [6/6] allura git commit: [#8040] helper _replaceSelection is private in newer simplemde
Date Thu, 28 Apr 2016 20:15:10 GMT
[#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/68437f90
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/68437f90
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/68437f90

Branch: refs/heads/master
Commit: 68437f901ab473c4c79041a7464d05a487d33cc6
Parents: 2c72576
Author: Dave Brondsema <dave@brondsema.net>
Authored: Wed Apr 27 14:33:51 2016 -0400
Committer: Heith Seewald <heiths@gmail.com>
Committed: Thu Apr 28 16:08:50 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/68437f90/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