Skip to content
Permalink
Browse files

Add fontSize option

  • Loading branch information...
Infocatcher committed Mar 20, 2019
1 parent 6583f5a commit 8de183954fa5e2c5da2b40ca65baf09647ef97c1
Showing with 8 additions and 1 deletion.
  1. +8 −1 CB_Source_Editor/cbSourceEditor.js
@@ -14,7 +14,8 @@ var options = {
enableCodeFolding: true,
showTrailingSpace: true,
lineWrapping: false,
autocomplete: true
autocomplete: true,
fontSize: 12
},
orion: {
lineNumbers: true
@@ -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

0 comments on commit 8de1839

Please sign in to comment.
You can’t perform that action at this time.