#555 import from demo library (local) does not work
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
const atags = document.querySelectorAll('a');
|
const atags = document.querySelectorAll('a');
|
||||||
Array.prototype.forEach.call(atags, function (aEle) {
|
Array.prototype.forEach.call(atags, function (aEle) {
|
||||||
aEle.addEventListener('click', function (event) {
|
aEle.addEventListener('click', function (event) {
|
||||||
|
event.preventDefault();
|
||||||
const { href } = event.currentTarget;
|
const { href } = event.currentTarget;
|
||||||
const target = window.parent;
|
const target = window.parent;
|
||||||
const post = (message) => {
|
const post = (message) => {
|
||||||
|
|||||||
@@ -519,7 +519,7 @@ export const importSvgString = function (xmlString) {
|
|||||||
const batchCmd = new BatchCommand('Import Image');
|
const batchCmd = new BatchCommand('Import Image');
|
||||||
let symbol;
|
let symbol;
|
||||||
if (useExisting) {
|
if (useExisting) {
|
||||||
({ symbol } = svgContext_.getImportIds());
|
symbol = svgContext_.getImportIds(uid).symbol;
|
||||||
ts = svgContext_.getImportIds(uid).xform;
|
ts = svgContext_.getImportIds(uid).xform;
|
||||||
} else {
|
} else {
|
||||||
// convert string into XML document
|
// convert string into XML document
|
||||||
|
|||||||
Reference in New Issue
Block a user