Skip to content

Commit

Permalink
Add fontSize option
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Mar 20, 2019
1 parent 6583f5a commit 8de1839
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CB_Source_Editor/cbSourceEditor.js
Expand Up @@ -14,7 +14,8 @@ var options = {
enableCodeFolding: true,
showTrailingSpace: true,
lineWrapping: false,
autocomplete: true
autocomplete: true,
fontSize: 12
},
orion: {
lineNumbers: true
Expand Down Expand Up @@ -444,6 +445,12 @@ if(!watcher) {
catch(e) {
Components.utils.reportError(e);
}
if("setFontSize" in se) try {
se.setFontSize(options.codeMirror.fontSize);
}
catch(e) {
Components.utils.reportError(e);
}
window.setTimeout(function() {
window.editor.changed = false; // Strange...
window.setTimeout(function() { // Workaround for unexpected onTextChanged() calls
Expand Down

0 comments on commit 8de1839

Please sign in to comment.