package
This commit is contained in:
parent
b5898374b2
commit
3413b7df89
7 changed files with 49 additions and 3 deletions
|
|
@ -508,6 +508,7 @@ split.on("focus", function(editor) {
|
|||
env.split = split;
|
||||
window.env = env;
|
||||
window.editor = window.ace = env.editor;
|
||||
env.editor.setAnimatedScroll(true);
|
||||
|
||||
var docEl = document.getElementById("doc");
|
||||
var modeEl = document.getElementById("mode");
|
||||
|
|
@ -521,6 +522,7 @@ var showGutterEl = document.getElementById("show_gutter");
|
|||
var showPrintMarginEl = document.getElementById("show_print_margin");
|
||||
var highlightSelectedWordE = document.getElementById("highlight_selected_word");
|
||||
var showHScrollEl = document.getElementById("show_hscroll");
|
||||
var animateScrollEl = document.getElementById("animate_scroll");
|
||||
var softTabEl = document.getElementById("soft_tab");
|
||||
var behavioursEl = document.getElementById("enable_behaviours");
|
||||
|
||||
|
|
@ -577,6 +579,7 @@ function updateUIEditorOptions() {
|
|||
saveOption(showPrintMarginEl, editor.renderer.getShowPrintMargin());
|
||||
saveOption(highlightSelectedWordE, editor.getHighlightSelectedWord());
|
||||
saveOption(showHScrollEl, editor.renderer.getHScrollBarAlwaysVisible());
|
||||
saveOption(animateScrollEl, editor.getAnimatedScroll());
|
||||
saveOption(softTabEl, session.getUseSoftTabs());
|
||||
saveOption(behavioursEl, editor.getBehavioursEnabled());
|
||||
}
|
||||
|
|
@ -690,6 +693,10 @@ bindCheckbox("show_hscroll", function(checked) {
|
|||
env.editor.renderer.setHScrollBarAlwaysVisible(checked);
|
||||
});
|
||||
|
||||
bindCheckbox("animate_scroll", function(checked) {
|
||||
env.editor.setAnimatedScroll(checked);
|
||||
});
|
||||
|
||||
bindCheckbox("soft_tab", function(checked) {
|
||||
env.editor.getSession().setUseSoftTabs(checked);
|
||||
});
|
||||
|
|
@ -14218,6 +14225,14 @@ var Editor = function(renderer, session) {
|
|||
return this.$highlightSelectedWord;
|
||||
};
|
||||
|
||||
this.setAnimatedScroll = function(shouldAnimate){
|
||||
this.renderer.setAnimatedScroll(shouldAnimate);
|
||||
};
|
||||
|
||||
this.getAnimatedScroll = function(){
|
||||
return this.renderer.getAnimatedScroll();
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor.setShowInvisibles(showInvisibles)
|
||||
* - showInvisibles (Boolean): Specifies whether or not to show invisible characters
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
Ace
|
||||
version 0.2.0
|
||||
commit 97de85b0aa76ef89a7f21102c0ef873ac093bd59
|
||||
commit 6caba032dd9de70ea9435a0ae7ea7978fd542ae7
|
||||
|
||||
|
||||
-->
|
||||
|
|
@ -133,6 +133,13 @@
|
|||
<input type="checkbox" name="show_hscroll" id="show_hscroll">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td >
|
||||
<label for="animate_scroll">Animate scrolling</label>
|
||||
</td><td>
|
||||
<input type="checkbox" name="animate_scroll" id="animate_scroll">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td >
|
||||
<label for="keybinding">Key Binding</label>
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -3336,6 +3336,14 @@ var Editor = function(renderer, session) {
|
|||
return this.$highlightSelectedWord;
|
||||
};
|
||||
|
||||
this.setAnimatedScroll = function(shouldAnimate){
|
||||
this.renderer.setAnimatedScroll(shouldAnimate);
|
||||
};
|
||||
|
||||
this.getAnimatedScroll = function(){
|
||||
return this.renderer.getAnimatedScroll();
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor.setShowInvisibles(showInvisibles)
|
||||
* - showInvisibles (Boolean): Specifies whether or not to show invisible characters
|
||||
|
|
|
|||
|
|
@ -3336,6 +3336,14 @@ var Editor = function(renderer, session) {
|
|||
return this.$highlightSelectedWord;
|
||||
};
|
||||
|
||||
this.setAnimatedScroll = function(shouldAnimate){
|
||||
this.renderer.setAnimatedScroll(shouldAnimate);
|
||||
};
|
||||
|
||||
this.getAnimatedScroll = function(){
|
||||
return this.renderer.getAnimatedScroll();
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor.setShowInvisibles(showInvisibles)
|
||||
* - showInvisibles (Boolean): Specifies whether or not to show invisible characters
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -3904,6 +3904,14 @@ var Editor = function(renderer, session) {
|
|||
return this.$highlightSelectedWord;
|
||||
};
|
||||
|
||||
this.setAnimatedScroll = function(shouldAnimate){
|
||||
this.renderer.setAnimatedScroll(shouldAnimate);
|
||||
};
|
||||
|
||||
this.getAnimatedScroll = function(){
|
||||
return this.renderer.getAnimatedScroll();
|
||||
};
|
||||
|
||||
/**
|
||||
* Editor.setShowInvisibles(showInvisibles)
|
||||
* - showInvisibles (Boolean): Specifies whether or not to show invisible characters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue