diff --git a/demo/demo_helper.js b/demo/demo_helper.js new file mode 100644 index 00000000..116338af --- /dev/null +++ b/demo/demo_helper.js @@ -0,0 +1,3 @@ +ace.require("ace/lib/net").get(document.baseURI, function(t){ + editor.setValue(t, 1); +}) \ No newline at end of file diff --git a/demo/kitchen-sink/styles.css b/demo/kitchen-sink/styles.css index 133068c0..ba1c1b47 100644 --- a/demo/kitchen-sink/styles.css +++ b/demo/kitchen-sink/styles.css @@ -42,7 +42,7 @@ body { #controls td + td { text-align: left; } -#lineColIndicator { +.ace_status-indicator { color: gray; position: absolute; right: 0; diff --git a/demo/statusbar.html b/demo/statusbar.html index 72648a94..9fc6583c 100644 --- a/demo/statusbar.html +++ b/demo/statusbar.html @@ -28,31 +28,30 @@ background-color: rgb(245, 245, 245); color: gray; } - #statusbar#lineColIndicator { - border-left:1px solid; + .ace_status-indicator { + color: gray; + position: absolute; + right: 0; + border-left: 1px solid; }
-
- var editor = ace.edit("editor");
- var StatusBar = ace.require('ace/ext/statusbar').StatusBar;
- var statusBar = new StatusBar(editor, document.getElementById('statusBar'));
- editor.setTheme("ace/theme/twilight");
- editor.getSession().setMode("ace/mode/javascript");
-
+