Browse Source

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/SCCommon

zhangweicheng 4 years ago
parent
commit
6e311f1026
2 changed files with 2 additions and 2 deletions
  1. 1 1
      handsontable/package.json
  2. 1 1
      handsontable/src/plugins/copyPaste/utils.js

+ 1 - 1
handsontable/package.json

@@ -10,7 +10,7 @@
     "url": "https://github.com/handsontable/handsontable/issues"
   },
   "author": "Handsoncode <hello@handsontable.com>",
-  "version": "6.3.12",
+  "version": "6.3.13",
   "browser": "dist/handsontable.js",
   "main": "commonjs/index.js",
   "module": "es/index.js",

+ 1 - 1
handsontable/src/plugins/copyPaste/utils.js

@@ -77,7 +77,7 @@ export function tableToArray(element) {
 
       for (let column = 0; column < cellsLen; column += 1) {
         const cell = cells[column];
-        cell.innerHTML = cell.innerHTML.trim().replace(/<br(.|)>(\n?)/, '\n');
+        cell.innerHTML = cell.innerHTML.trim().replace(/<br(.|)>(\n?)/g, '\n');
         const cellText = cell.innerText;
 
         newRow.push(cellText);