set copy plain text delimiter to tab

This commit is contained in:
Dyas🍌 Yaskur🍎 2022-12-19 19:07:31 +07:00
parent c32f463ea5
commit 2236c8fe75
No known key found for this signature in database
GPG Key ID: D78DB836A5211DE1
1 changed files with 1 additions and 1 deletions

View File

@ -474,7 +474,7 @@ const copyRow = (format: string) => {
const htmlContent = createHtmlTable(arrayContent);
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({
'text/plain': textBlob,
'text/html': htmlBlob