diff --git a/apps/documenteditor/main/app/view/TableFormulaDialog.js b/apps/documenteditor/main/app/view/TableFormulaDialog.js index 2887511dd..1cf41da8e 100644 --- a/apps/documenteditor/main/app/view/TableFormulaDialog.js +++ b/apps/documenteditor/main/app/view/TableFormulaDialog.js @@ -189,7 +189,7 @@ define([ }); this.cmbFormat.setData(arr); var formula = this.api.asc_GetTableFormula(), - idx = formula.lastIndexOf('/\#'); + idx = formula.lastIndexOf('\\#'); this.inputFormula.setValue(formula.substring(0, (idx>-1) ? idx : formula.length)); if (idx>-1) this.cmbFormat.setValue(formula.substring(idx+2, formula.length)); @@ -218,7 +218,7 @@ define([ }, getSettings: function () { - return (this.inputFormula.getValue() + '/\#' + this.cmbFormat.getValue()); + return (this.inputFormula.getValue() + '\\#' + this.cmbFormat.getValue()); }, onBtnClick: function(event) {