diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 8414ada4..2036a5b8 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -2619,6 +2619,20 @@ function svg_edit_setup() { var src = loc.substring(loc.indexOf(pre) + pre.length); svgCanvas.setSvgString(Utils.decode64(src)); } + else if(loc.indexOf('?url=') != -1) { + var pre = '?url='; + var url = loc.substring(loc.indexOf(pre) + pre.length); + $.ajax({ + 'url': url, + 'dataType': 'text', + success: svgCanvas.setSvgString, + error: function(xhr) { + if(xhr.responseText) { + svgCanvas.setSvgString(xhr.responseText); + } + } + }); + } } }); }());