Add editor.html Font-Size selection
This commit is contained in:
parent
8010ca3e4a
commit
fa7bfdeb10
2 changed files with 30 additions and 13 deletions
|
|
@ -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");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue