|
|
@ -119,7 +119,7 @@ class Editor extends React.Component {
|
|
|
|
if (format === 'svg') {
|
|
|
|
if (format === 'svg') {
|
|
|
|
return domtoimage
|
|
|
|
return domtoimage
|
|
|
|
.toSvg(node, config)
|
|
|
|
.toSvg(node, config)
|
|
|
|
.then(dataUrl => dataUrl.split(' ').join(' '))
|
|
|
|
.then(dataUrl => dataUrl.replace(/ /g, ' '))
|
|
|
|
.then(uri => uri.slice(uri.indexOf(',') + 1))
|
|
|
|
.then(uri => uri.slice(uri.indexOf(',') + 1))
|
|
|
|
.then(data => new Blob([data], { type: 'image/svg+xml' }))
|
|
|
|
.then(data => new Blob([data], { type: 'image/svg+xml' }))
|
|
|
|
.then(data => window.URL.createObjectURL(data))
|
|
|
|
.then(data => window.URL.createObjectURL(data))
|
|
|
|