From 71b65efe1db6eb49d81f26585fd21953d92974fb Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 20 Jan 2019 14:34:34 +1200 Subject: [PATCH] Fixed copy/paste --- desktop/sources/scripts/dotgrid.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop/sources/scripts/dotgrid.js b/desktop/sources/scripts/dotgrid.js index 99142c5..1bf3084 100644 --- a/desktop/sources/scripts/dotgrid.js +++ b/desktop/sources/scripts/dotgrid.js @@ -200,8 +200,8 @@ function Dotgrid (width, height) { if (e.target !== this.picker.input) { e.clipboardData.setData('text/source', DOTGRID.tool.export(DOTGRID.tool.layer())) e.clipboardData.setData('text/plain', DOTGRID.tool.path()) - e.clipboardData.setData('text/html', DOTGRID.manager.svg_el.outerHTML) - e.clipboardData.setData('text/svg+xml', DOTGRID.manager.svg_el.outerHTML) + e.clipboardData.setData('text/html', DOTGRID.manager.el.outerHTML) + e.clipboardData.setData('text/svg+xml', DOTGRID.manager.el.outerHTML) e.preventDefault() } @@ -214,8 +214,8 @@ function Dotgrid (width, height) { if (e.target !== this.picker.input) { e.clipboardData.setData('text/source', DOTGRID.tool.export(DOTGRID.tool.layer())) e.clipboardData.setData('text/plain', DOTGRID.tool.export(DOTGRID.tool.layer())) - e.clipboardData.setData('text/html', DOTGRID.manager.svg_el.outerHTML) - e.clipboardData.setData('text/svg+xml', DOTGRID.manager.svg_el.outerHTML) + e.clipboardData.setData('text/html', DOTGRID.manager.el.outerHTML) + e.clipboardData.setData('text/svg+xml', DOTGRID.manager.el.outerHTML) DOTGRID.tool.layers[DOTGRID.tool.index] = [] e.preventDefault() }