Open Trev-Chumba opened 3 months ago
More info its not a windows thing when i test on local dev it works fine but on a neutral server where i use the same table and data the error occurs i don't understand how.
so I'm stuck on an error that keeps saying TypeError undefined 'Height' when on dev server apache but locally runs fine
i edited the node_module in the function getFurthestEnd which stopped the 'TypeError undefined 'Top''
var getFurthestEnd = function getFurthestEnd(elements) {
return Math.max.apply(Math, elements.map(function (node) {
var nodeHeight = node.box.height || 600;
var nodeTop = node.box.top || 0;
return nodeTop+ nodeHeight;
}));
};
but now i can't solve the error stemming from
var nodeHeight = child.box.height ;
keeps saying height is undefined but only from the server not locally. setting a default doesn't work and setting Height on the
Describe the bug I am using ckEditor to give users freedom to write and display the content on the pdf, i use the library react-pdf-html to help renderer. Sometimes users paste stuff like ltables from word and for the most part its ok. However when you paste 2 tables from either word or excel i get the above TypeError. This doesn't happen in libreOffice or wps which is even more confusing.
To Reproduce 1.well the best way to tell you is install react-pdf-html from (https://www.npmjs.com/package/react-pdf-html)
a code like .....
...
create a on word should be a decent size try 4 x 5 use excel if you wish and format as table
you would ideally use a ckeditor the process for that is well documented if you want and paste the table on the editor and paste the same table or create another one in word or excel. or skip this and step 5 and just paste the text document content as the htmlDataat
const htmlData = 'contents of the below html markup pasted here' (its long, 2tablesinHTML.txt )
Screenshots
Desktop (please complete the following information):