@jx3box/jx3box-editor 1.6.1 → 1.6.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,11 +31,11 @@
31
31
  "last 2 versions"
32
32
  ],
33
33
  "dependencies": {
34
- "@jx3box/jx3box-common": "^7.4.2",
35
- "@jx3box/jx3box-data": "^1.11.1",
36
- "@jx3box/jx3box-emotion": "^1.0.10",
34
+ "@jx3box/jx3box-common": "^7.6.1",
35
+ "@jx3box/jx3box-data": "^3.0.3",
36
+ "@jx3box/jx3box-emotion": "^1.1.0",
37
37
  "@jx3box/jx3box-macro": "^1.0.1",
38
- "@jx3box/jx3box-talent": "^1.1.2",
38
+ "@jx3box/jx3box-talent": "^1.1.7",
39
39
  "@jx3box/markdown": "^0.1.5",
40
40
  "@tinymce/tinymce-vue": "^3.2.2",
41
41
  "axios": "^0.19.2",
package/src/Article.vue CHANGED
@@ -262,9 +262,6 @@ export default {
262
262
  this.doDir();
263
263
  });
264
264
  },
265
- inited: function (viewer) {
266
- this.$viewer = viewer;
267
- },
268
265
  },
269
266
  watch: {
270
267
  content: function () {
package/src/Tinymce.vue CHANGED
@@ -199,9 +199,8 @@ export default {
199
199
  insertResource: function(data) {
200
200
  tinyMCE.editors["tinymce"].insertContent(data);
201
201
  },
202
- emotionSelected: function(key) {
203
- const pathKey = key.slice(1);
204
- const IMAGE = `<img class="t-emotion" src="${__ossRoot}image/emotion/${pathKey}.gif" alt="${key}" />`
202
+ emotionSelected: function(src) {
203
+ const IMAGE = `<img class="t-emotion" src="${src}" alt="${src}" />`
205
204
  tinyMCE.editors["tinymce"].insertContent(IMAGE)
206
205
  },
207
206
  },