Skip to content

Commit

Permalink
Merge pull request #564 from /issues/555
Browse files Browse the repository at this point in the history
  • Loading branch information
jfhenon authored Jun 3, 2021
2 parents 82ac1a8 + 1ab6e09 commit 8606934
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/editor/extensions/ext-imagelib/ext-imagelib.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export default {

const button = document.createElement('button');
// eslint-disable-next-line max-len
button.innerHTML = '<img class="svg_icon" src="./images/cancel.svg" alt="icon" width="16" height="16" />' + svgEditor.i18next.t('common.cancel');
button.innerHTML = svgEditor.i18next.t('common.cancel');
browser.appendChild(button);
button.addEventListener('click', function () {
$id("imgbrowse_holder").style.display = 'none';
Expand Down
1 change: 1 addition & 0 deletions src/editor/extensions/ext-imagelib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const atags = document.querySelectorAll('a');
Array.prototype.forEach.call(atags, function (aEle) {
aEle.addEventListener('click', function (event) {
event.preventDefault();
const { href } = event.currentTarget;
const target = window.parent;
const post = (message) => {
Expand Down
2 changes: 1 addition & 1 deletion src/svgcanvas/svg-exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export const importSvgString = function (xmlString) {
const batchCmd = new BatchCommand('Import Image');
let symbol;
if (useExisting) {
({ symbol } = svgContext_.getImportIds());
symbol = svgContext_.getImportIds(uid).symbol;
ts = svgContext_.getImportIds(uid).xform;
} else {
// convert string into XML document
Expand Down

0 comments on commit 8606934

Please sign in to comment.