@jx3box/jx3box-editor 1.7.5 → 1.7.6
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/img.js +2 -2
- package/package.json +1 -1
- package/src/Tinymce.vue +2 -2
- package/src/Upload.vue +1 -1
package/assets/js/img.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// 图片地址&懒加载
|
|
2
2
|
import { resolveImagePath } from "@jx3box/jx3box-common/js/utils";
|
|
3
|
-
import
|
|
3
|
+
import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
|
|
4
4
|
function lazyLoad(str) {
|
|
5
5
|
if (!str) return;
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ function lazyLoad(str) {
|
|
|
11
11
|
let prefix = item[1];
|
|
12
12
|
let src = resolveImagePath(item[2]);
|
|
13
13
|
if (src.includes('https://console.cnyixun.com/')) {
|
|
14
|
-
src = src.replace('https://console.cnyixun.com/', __cdn)
|
|
14
|
+
src = src.replace('https://console.cnyixun.com/', JX3BOX.__cdn)
|
|
15
15
|
}
|
|
16
16
|
let suffix = item[3];
|
|
17
17
|
let output = `<img ${prefix} loading="lazy" src="${src}" ${suffix}>`;
|
package/package.json
CHANGED
package/src/Tinymce.vue
CHANGED
|
@@ -76,12 +76,12 @@ export default {
|
|
|
76
76
|
contextmenu: "",
|
|
77
77
|
plugins: [
|
|
78
78
|
"link autolink",
|
|
79
|
-
"hr lists advlist table codeinline codesample checklist foldtext latex",
|
|
79
|
+
"hr lists advlist table codeinline codesample checklist foldtext latex anchor",
|
|
80
80
|
"image emoticons media videox macro qixue talent2",
|
|
81
81
|
"code fullscreen wordcount powerpaste pagebreak printpage pz", // template anchor jx3icon autosave
|
|
82
82
|
],
|
|
83
83
|
toolbar: [
|
|
84
|
-
"undo | formatselect | fontsizeselect | forecolor backcolor | bold italic underline strikethrough superscript subscript | link unlink | fullscreen code", //restoredraft
|
|
84
|
+
"undo | formatselect | fontsizeselect | forecolor backcolor | bold italic underline strikethrough superscript subscript | link unlink anchor | fullscreen code", //restoredraft
|
|
85
85
|
"removeformat | hr alignleft aligncenter alignright alignjustify indent outdent | bullist numlist checklist table blockquote foldtext codeinline codesample latex | emoticons image media videox | macro pz qixue talent2 pagebreak printpage", // template anchor jx3icon
|
|
86
86
|
],
|
|
87
87
|
mobile: {
|
package/src/Upload.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<el-button type="primary" @click="dialogVisible = true" icon="el-icon-upload" :disabled="!enable">{{ btn_txt }}</el-button>
|
|
5
5
|
|
|
6
6
|
<!-- 弹出界面 -->
|
|
7
|
-
<el-dialog class="c-large-dialog" title="上传" :visible.sync="dialogVisible">
|
|
7
|
+
<el-dialog class="c-large-dialog" title="上传" :visible.sync="dialogVisible" append-to-body>
|
|
8
8
|
<!-- 清空按钮 -->
|
|
9
9
|
<el-button class="u-upload-clear" plain icon="el-icon-delete" size="mini" @click="clear">清空</el-button>
|
|
10
10
|
|