add behaviours to demo and fix exceptions in cstyle behaviours
This commit is contained in:
parent
b8c0563d62
commit
77db0be7f8
3 changed files with 37 additions and 20 deletions
|
|
@ -245,6 +245,7 @@ exports.launch = function(env) {
|
|||
var highlightSelectedWordE = document.getElementById("highlight_selected_word");
|
||||
var showHScrollEl = document.getElementById("show_hscroll");
|
||||
var softTabEl = document.getElementById("soft_tab");
|
||||
var behavioursEl = document.getElementById("enable_behaviours");
|
||||
|
||||
bindDropdown("doc", function(value) {
|
||||
var doc = docs[value];
|
||||
|
|
@ -342,6 +343,7 @@ exports.launch = function(env) {
|
|||
highlightSelectedWordE.checked = editor.getHighlightSelectedWord();
|
||||
showHScrollEl.checked = editor.renderer.getHScrollBarAlwaysVisible();
|
||||
softTabEl.checked = session.getUseSoftTabs();
|
||||
behavioursEl.checked = editor.getBehavioursEnabled()
|
||||
}
|
||||
|
||||
bindDropdown("mode", function(value) {
|
||||
|
|
@ -418,6 +420,10 @@ exports.launch = function(env) {
|
|||
env.editor.getSession().setUseSoftTabs(checked);
|
||||
});
|
||||
|
||||
bindCheckbox("enable_behaviours", function(checked) {
|
||||
env.editor.setBehavioursEnabled(checked);
|
||||
});
|
||||
|
||||
var secondSession = null;
|
||||
bindDropdown("split", function(value) {
|
||||
var sp = env.split;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue