add setFontSize method to the editor. fix #315
This commit is contained in:
parent
1ad3030099
commit
b1b22e2827
2 changed files with 35 additions and 31 deletions
|
|
@ -220,15 +220,19 @@ var Editor =function(renderer, session) {
|
|||
|
||||
this.getTheme = function() {
|
||||
return this.renderer.getTheme();
|
||||
}
|
||||
};
|
||||
|
||||
this.setStyle = function(style) {
|
||||
this.renderer.setStyle(style)
|
||||
this.renderer.setStyle(style);
|
||||
};
|
||||
|
||||
this.unsetStyle = function(style) {
|
||||
this.renderer.unsetStyle(style)
|
||||
}
|
||||
this.renderer.unsetStyle(style);
|
||||
};
|
||||
|
||||
this.setFontSize = function(size) {
|
||||
this.container.style.fontSize = size;
|
||||
};
|
||||
|
||||
this.$highlightBrackets = function() {
|
||||
if (this.session.$bracketHighlight) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue