@mce/svg 0.15.17 → 0.15.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -53,8 +53,11 @@ function plugin() {
53
53
  exporters: [
54
54
  {
55
55
  name: "svg",
56
- copyAs: true,
57
- saveAs: (exported) => new Blob([exported], { type: "image/svg+xml" }),
56
+ copyAs: (svgString) => [
57
+ new Blob([svgString], { type: "text/plain" }),
58
+ new Blob([svgString], { type: "image/svg+xml" })
59
+ ],
60
+ saveAs: (svgString) => new Blob([svgString], { type: "image/svg+xml" }),
58
61
  handle: async (options) => {
59
62
  const doc = await to("json", options);
60
63
  return await docToSvgString({ ...doc, fonts });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mce/svg",
3
3
  "type": "module",
4
- "version": "0.15.17",
4
+ "version": "0.15.19",
5
5
  "description": "SVG plugin for mce",
6
6
  "author": "wxm",
7
7
  "license": "MIT",
@@ -50,7 +50,7 @@
50
50
  "modern-path2d": "^1.4.16"
51
51
  },
52
52
  "devDependencies": {
53
- "mce": "0.15.17"
53
+ "mce": "0.15.19"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "mce": "^0"