From ccfbedff5af8e3f81a04192f3ee82ded962b87dd Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Tue, 7 Feb 2017 11:07:43 +0100 Subject: [PATCH] Add support for custom quote character on CSV Import/Export Since version 4.1.3 of PapaParse it's supported, so we can enable it. issue6223 review34661002 --- src/window.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/window.js b/src/window.js index 1ad3491f5e..a8f39af273 100644 --- a/src/window.js +++ b/src/window.js @@ -937,7 +937,6 @@ 'size': '1', 'maxlength': '1', 'value': '\"', - 'readonly': '' // Until PapaParse releases custom quote feature }); jQuery('
', { @@ -1175,7 +1174,7 @@ Papa.parse(this.file_input[0].files[0], { config: { delimiter: this.el_csv_delimiter.val(), - // TODO quoteChar: this.el_csv_quotechar.val(), + quoteChar: this.el_csv_quotechar.val(), preview: 1, encoding: this.el_csv_encoding.val() }, @@ -1274,7 +1273,7 @@ Papa.parse(this.file_input[0].files[0], { config: { delimiter: this.el_csv_delimiter.val(), - // TODO quoteChar: this.el_csv_quotechar.val(), + quoteChar: this.el_csv_quotechar.val(), encoding: encoding }, error: function(err, file, inputElem, reason) { @@ -1695,7 +1694,7 @@ unparse_obj.fields = fields; } var csv = Papa.unparse(unparse_obj, { - // TODO quoteChar: this.el_csv_quotechar.val(), + quoteChar: this.el_csv_quotechar.val(), delimiter: this.el_csv_delimiter.val() }); var blob = new Blob([csv], {type: 'text/csv;charset=' + encoding});