add setFontSize method to the editor. fix #315

This commit is contained in:
Fabian Jakobs 2011-06-29 08:44:07 +00:00
commit b1b22e2827
2 changed files with 35 additions and 31 deletions

View file

@ -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) {