mirror of https://github.com/Fabio286/antares.git
set copy plain text delimiter to tab
This commit is contained in:
parent
c32f463ea5
commit
2236c8fe75
|
@ -474,7 +474,7 @@ const copyRow = (format: string) => {
|
||||||
|
|
||||||
const htmlContent = createHtmlTable(arrayContent);
|
const htmlContent = createHtmlTable(arrayContent);
|
||||||
const htmlBlob = new Blob([htmlContent.outerHTML], { type: 'text/html' });
|
const htmlBlob = new Blob([htmlContent.outerHTML], { type: 'text/html' });
|
||||||
const textBlob = new Blob([arrayContent.map(row => row.join(' ')).join('\n')], { type: 'text/plain' });
|
const textBlob = new Blob([arrayContent.map(row => row.join('\t')).join('\n')], { type: 'text/plain' });
|
||||||
const data = [new ClipboardItem({
|
const data = [new ClipboardItem({
|
||||||
'text/plain': textBlob,
|
'text/plain': textBlob,
|
||||||
'text/html': htmlBlob
|
'text/html': htmlBlob
|
||||||
|
|
Loading…
Reference in New Issue