diff --git a/doc/site/js/main.js b/doc/site/js/main.js index 365ab05c..b52d6f6b 100644 --- a/doc/site/js/main.js +++ b/doc/site/js/main.js @@ -7,9 +7,12 @@ $(function() { editor.container.style.opacity = ""; embedded_editor = ace.edit("embedded_ace_code"); embedded_editor.container.style.opacity = ""; - editor.getSession().setMode("ace/mode/javascript"); - editor.getSession().setMode("ace/mode/javascript"); - embedded_editor.getSession().setMode("ace/mode/html"); + editor.session.setMode("ace/mode/javascript"); + editor.session.setMode("ace/mode/javascript"); + embedded_editor.session.setMode("ace/mode/html"); + + embedded_editor.setAutoScrollEditorIntoView(true); + editor.setAutoScrollEditorIntoView(true); $("ul.menu-list li").click(function(e) { if (e.target.tagName === "LI") { diff --git a/index.html b/index.html index 8895546a..5446ac38 100644 --- a/index.html +++ b/index.html @@ -944,6 +944,11 @@ oop.inherits(FoldMode, BaseFoldMode); style="position: relative; left: 3px; width: 96px;top: -12px;"> Slim Text +
  • + + Decor +
  • Sky Edit
  • diff --git a/lib/ace/editor.js b/lib/ace/editor.js index 4bab091d..b331f2ac 100644 --- a/lib/ace/editor.js +++ b/lib/ace/editor.js @@ -2136,7 +2136,7 @@ var Editor = function(renderer, session) { * @param {Boolean} enable default true **/ this.setAutoScrollEditorIntoView = function(enable) { - if (enable === true) + if (enable === false) return; var rect; var self = this; @@ -2178,7 +2178,7 @@ var Editor = function(renderer, session) { } }); this.setAutoScrollEditorIntoView = function(enable) { - if (enable === false) + if (enable === true) return; delete this.setAutoScrollEditorIntoView; this.removeEventListener("changeSelection", onChangeSelection);