ace-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ace-rails/version.rb +1 -1
- data/lib/ace-rails/view_helpers.rb +2 -2
- metadata +1 -1
data/lib/ace-rails/version.rb
CHANGED
@@ -21,12 +21,12 @@ module Ace
|
|
21
21
|
<script type='text/javascript' src='/javascripts/ace/mode-#{mode}.js' charset='utf-8' ></script>
|
22
22
|
#{theme_script_tag}
|
23
23
|
<script type='text/javascript'>
|
24
|
-
|
24
|
+
window.onload = function() {
|
25
25
|
var editor = ace.edit('#{id}');
|
26
26
|
#{theme_setter}
|
27
27
|
var #{mode_class} = require("ace/mode/#{mode}").Mode;
|
28
28
|
editor.getSession().setMode(new #{mode_class}());
|
29
|
-
}
|
29
|
+
};
|
30
30
|
</script>
|
31
31
|
HTML
|
32
32
|
|