JSFiddle - React, Tailwind, and code Playground
by Sean Wessell
HTML
<textarea onpaste="formatAsTable(this)" contenteditable=true>
</textarea>
JavaScript
function formatAsTable(that) {
console.log(that.value)
xls = that.value;
console.log(xls.replace('\t','[tab]'))
if (xls.includes('\t')) {
var rows = xls.split('\n')
alert(rows.length)
}
}