diff options
Diffstat (limited to 'js/controllers')
-rw-r--r-- | js/controllers/code-editor-controller.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/controllers/code-editor-controller.js b/js/controllers/code-editor-controller.js index 2302730c..8757dceb 100644 --- a/js/controllers/code-editor-controller.js +++ b/js/controllers/code-editor-controller.js | |||
@@ -199,5 +199,18 @@ var CodeEditorController = exports.CodeEditorController = Montage.create(Compone | |||
199 | value: function(){ | 199 | value: function(){ |
200 | this.application.ninja.documentController.activeDocument.editor.setOption("theme", this.editorTheme); | 200 | this.application.ninja.documentController.activeDocument.editor.setOption("theme", this.editorTheme); |
201 | } | 201 | } |
202 | }, | ||
203 | |||
204 | applySettings:{ | ||
205 | value:function(){ | ||
206 | var codeLineElem = null, i=0; | ||
207 | //set theme | ||
208 | this.handleThemeSelection(); | ||
209 | //check autocomplete support | ||
210 | this.handleCodeCompletionSupport(this.application.ninja.documentController.activeDocument.editor.getOption("mode")); | ||
211 | //set zoom | ||
212 | codeLineElem = this.application.ninja.documentController.activeDocument.container.getElementsByClassName("CodeMirror-lines")[0]; | ||
213 | codeLineElem.style.fontSize = ""+this._editorFont+"px"; | ||
214 | } | ||
202 | } | 215 | } |
203 | }); \ No newline at end of file | 216 | }); \ No newline at end of file |