@jx3box/jx3box-editor 2.2.28 → 2.2.29

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/package.json +2 -2
  2. package/src/Tinymce.vue +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "2.2.28",
3
+ "version": "2.2.29",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@jx3box/jx3box-common": "^8.7.1",
36
36
  "@jx3box/jx3box-data": "^3.8.2",
37
- "@jx3box/jx3box-emotion": "^1.2.11",
37
+ "@jx3box/jx3box-emotion": "^1.2.13",
38
38
  "@jx3box/jx3box-macro": "^1.0.1",
39
39
  "@jx3box/jx3box-talent": "^1.3.3",
40
40
  "@jx3box/markdown": "^0.1.5",
package/src/Tinymce.vue CHANGED
@@ -142,7 +142,10 @@ export default {
142
142
  tinyMCE.editors["tinymce"].insertContent(data);
143
143
  },
144
144
  emotionSelected: function (emotion) {
145
- const src = `${__imgPath}emotion/output/${emotion.filename}`;
145
+ let src = emotion.filename;
146
+ if (!emotion.filename.startsWith("http")) {
147
+ src = `${__imgPath}emotion/output/${emotion.filename}`;
148
+ }
146
149
  const IMAGE = `<img class="t-emotion" src="${src}" alt="${src}" />`;
147
150
  tinyMCE.editors["tinymce"].insertContent(IMAGE);
148
151
  },