Add editor.html Font-Size selection

This commit is contained in:
Julian Viereck 2011-01-28 19:17:04 +08:00 • committed by Fabian Jakobs
commit fa7bfdeb10
2 changed files with 30 additions and 13 deletions

View file

@ -166,6 +166,10 @@ exports.launch = function(env) {
env.editor.setKeyboardHandler(keybindings[value]);
});
bindDropdown("fontsize", function(value) {
document.getElementById("editor").style["font-size"] = value;
});
bindCheckbox("select_style", function(checked) {
env.editor.setSelectionStyle(checked ? "line" : "text");
});