@jx3box/jx3box-editor 2.2.16 → 2.2.18
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/assets/js/talent2.js +1 -1
- package/package.json +1 -1
- package/readme.md +3 -6
- package/service/cms.js +2 -2
package/assets/js/talent2.js
CHANGED
|
@@ -10,7 +10,7 @@ function talent2(selector = ".e-jx3talent2-area") {
|
|
|
10
10
|
// 内容解析
|
|
11
11
|
let talent = $(this).text();
|
|
12
12
|
let code = Base64.encode(talent);
|
|
13
|
-
let url = "https://
|
|
13
|
+
let url = "https://cdn.jx3box.com/static/jx3box-talent2/index.html" + "?code=" + code;
|
|
14
14
|
|
|
15
15
|
container.html(`<iframe src="${url}" width="100%" height="100%" style="overflow:hidden;border:none;"></iframe>`);
|
|
16
16
|
});
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Article & Editor
|
|
2
2
|
|
|
3
|
-
手动更新 cdn `https://oss.jx3box.com/static/`
|
|
4
|
-
|
|
5
3
|
# Dev
|
|
6
4
|
```
|
|
7
5
|
$ npm install
|
|
@@ -39,7 +37,7 @@ import Tinymce from "@jx3box/jx3box-editor/src/Tinymce.vue";
|
|
|
39
37
|
编辑器
|
|
40
38
|
|
|
41
39
|
```html
|
|
42
|
-
<script src="https://
|
|
40
|
+
<script src="https://cdn.jx3box.com/static/tinymce/tinymce.min.js?v=$version"></script>
|
|
43
41
|
<Tinymce
|
|
44
42
|
v-model="content"
|
|
45
43
|
:attachmentEnable="true"
|
|
@@ -65,9 +63,8 @@ import Tinymce from "@jx3box/jx3box-editor/src/Tinymce.vue";
|
|
|
65
63
|
后续 11 月会新增一个文本物品浮层功能(关联物品百科)。
|
|
66
64
|
|
|
67
65
|
```html
|
|
68
|
-
<script src="https://
|
|
69
|
-
<script src="https://
|
|
70
|
-
<link rel="stylesheet" href="https://oss.jx3box.com/static/jx3box-editor/jx3box_article.css?v="/>
|
|
66
|
+
<script src="https://cdn.jx3box.com/static/jx3box-lib/vue.js?v="></script>
|
|
67
|
+
<script src="https://cdn.jx3box.com/static/jx3box-editor/jx3box_article.umd.min.js?v="></script>
|
|
71
68
|
```
|
|
72
69
|
|
|
73
70
|
2. body标签:需要插入的位置
|
package/service/cms.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $cms } from "@jx3box/jx3box-common/js/https";
|
|
2
2
|
import axios from "axios";
|
|
3
|
-
import {
|
|
3
|
+
import { __cdn } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
4
4
|
|
|
5
5
|
function uploadFile(data) {
|
|
6
6
|
return $cms().post(`/api/cms/upload`, data);
|
|
@@ -27,7 +27,7 @@ function getDecoration(params) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function getDecorationJson() {
|
|
30
|
-
let url =
|
|
30
|
+
let url = __cdn + "design/decoration/index.json";
|
|
31
31
|
return axios.get(url);
|
|
32
32
|
}
|
|
33
33
|
|