Raphael.Export
Raphael.Export copied to clipboard
Error when text created without specifying font. AKA "Uncaught TypeError: Cannot read property 'replace' of undefined"
Just specifying "paper.text(x,y).attr('text');" does not create a font attribute, which Raphael.export requires on line 118.
Please update to say "family: typeof node.attrs.font === 'undefined' ? null : node.attrs.font.replace(/^.?"(\w+)".$/, '$1'),"
few days back I had same issue, simply i have commented this line //family: node.attrs.font.replace(/^.?"(\w+)".$/, '$1'), it works for me