Closed faseehahmed1 closed 10 months ago
Problem: When copying from an excel sheet where cell has multiple lines the context menu paste does not work.
There are 2 ways you can paste: Keyboard: cntrl+v (OnPaste) Context Menu: right click paste (Type: 'PASTE')
Keyboard first checks
if (item.types.includes('text/html')) { const htmlTextData = await item.getType('text/html') pasteData = parseTextHtmlData(await htmlTextData.text()) }
Whereas the context menu paste was first checking:
if (item.types.includes('text/plain')) { const plainTextData = await item.getType('text/plain') pasteData = parseTextPlainData(await plainTextData.text()) }
With my changes 'text/html' is checked first on context menu paste just like it already is on keybaord paste.
Here is a gif showing the issue when a cell has multiple lines context menu paste does not work:
Issue is fixed with my changes 🙂
Problem: When copying from an excel sheet where cell has multiple lines the context menu paste does not work.
There are 2 ways you can paste: Keyboard: cntrl+v (OnPaste) Context Menu: right click paste (Type: 'PASTE')
Keyboard first checks
Whereas the context menu paste was first checking:
With my changes 'text/html' is checked first on context menu paste just like it already is on keybaord paste.
Here is a gif showing the issue when a cell has multiple lines context menu paste does not work:
Issue is fixed with my changes 🙂