Skip to content

Commit de4bc49

Browse files
committed
Changed the expression max length to 2500 and substitution's to 500
1 parent bd5850a commit de4bc49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/views/DocView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ SOFTWARE.
101101

102102
p.buildUI = function(el) {
103103
var expressionEditor = $.el(".editor.expr", el);
104-
var expCM = this.expressionCM = this.getCM(expressionEditor, {autofocus:true, maxLength:1000, singleLine:true}, "calc(100% - 5.5rem)", "auto");
104+
var expCM = this.expressionCM = this.getCM(expressionEditor, {autofocus:true, maxLength:2500, singleLine:true}, "calc(100% - 5.5rem)", "auto");
105105
expCM.on("change", $.bind(this, this.deferUpdate));
106106
expCM.on("mousedown", $.bind(this, this.expressionClick));
107107
expCM.on("change", $.bind(this, this.handleExpressionCMChange));
@@ -129,7 +129,7 @@ SOFTWARE.
129129
substTitle.addEventListener("mousedown", $.bind(this, this.onSubstClick));
130130

131131
var substEditor = $.el(".editor.subst", el);
132-
var substCM = this.substCM = this.getCM(substEditor, {maxLength:100, singleLine:true}, "100%", "auto");
132+
var substCM = this.substCM = this.getCM(substEditor, {maxLength:500, singleLine:true}, "100%", "auto");
133133
substCM.on("change", $.bind(this, this.deferUpdate));
134134
this.substHighlighter = new ExpressionHighlighter(substCM);
135135
this.substHover = new ExpressionHover(substCM, this.substHighlighter);

0 commit comments

Comments
 (0)