Browse Source

fix(updatecell.js): 修复双击和Enter键激活单元格,输入中文时的首字母变成拼音的bug

修复双击和Enter键激活单元格,输入中文时的首字母变成拼音的bug

fix #726
master
tong 4 years ago
parent
commit
02f3eb9aea
  1. 6
      src/controllers/updateCell.js

6
src/controllers/updateCell.js

@ -214,9 +214,9 @@ export function luckysheetupdateCell(row_index1, col_index1, d, cover, isnotfocu
input_postition["min-width"] = input_postition["max-width"]; input_postition["min-width"] = input_postition["max-width"];
} }
if((value == null || value.toString() == "") && !cover){ // if((value == null || value.toString() == "") && !cover){
value = "<br/>"; // value = "<br/>";
} // }
value = formula.xssDeal(value); value = formula.xssDeal(value);
if(!checkProtectionCellHidden(row_index, col_index, Store.currentSheetIndex) && value.length>0 && value.substr(0, 63)=='<span dir="auto" class="luckysheet-formula-text-color">=</span>'){ if(!checkProtectionCellHidden(row_index, col_index, Store.currentSheetIndex) && value.length>0 && value.substr(0, 63)=='<span dir="auto" class="luckysheet-formula-text-color">=</span>'){
$("#luckysheet-rich-text-editor").html(""); $("#luckysheet-rich-text-editor").html("");

Loading…
Cancel
Save