Please apply the following patch to resolve the merged-cells copy–paste issue until the next version is released.
pq.extractCells=function(t){let l=t.match(/<style>([\s\S]*?)<\/style>/),e=l?l[1].replace(/(<!--|-->)/,""):"",a={};e.replace(/\.([^\s{]+)\s*{([^}]*)}/g,((t,l,e)=>{a[l]=e.trim()}));let s=[];return[...t.matchAll(/<tr(.*?)>(.*?)<\/tr>/gs)].forEach(((t,l)=>{let e=t[2];s[l]||(s[l]=[]);let r=0;[...e.matchAll(/<td(.*?)>(.*?)<\/td>/gs)].forEach((t=>{for(;s[l][r];)r++;let e=t[1],c=t[2],n=e.match(/colspan=["']?(\d+)["']?/i),o=e.match(/rowspan=["']?(\d+)["']?/i),p=n?parseInt(n[1],10):1,h=o?parseInt(o[1],10):1,m=e.match(/style=(['"])(.*?)\1/),f=(m?.[2]||"").replace(/"/g,'"'),y=e.match(/class=(["'])([^"'<>]+)\1|class=([^\s<>]+)/),i=y?y[2]||y[3]:null,u=i&&a[i]?a[i]:null,d=pq.parseStyle([f,u].join(";"));for(let t=0;t<h;t++)for(let e=0;e<p;e++){let a=l+t,n=r+e;s[a]||(s[a]=[]),s[a][n]=0===t&&0===e?{val:c,style:d}:{val:"",style:d}}r++}))})),s};
Include this snippet anywhere after the pqGrid JavaScript file.
Please let me know if you have any questions or need further assistance.