@jx3box/jx3box-editor 1.6.4 → 1.6.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/css/tinymce.less +21 -0
- package/package.json +3 -3
- package/src/Tinymce.vue +3 -2
package/assets/css/tinymce.less
CHANGED
|
@@ -14,6 +14,27 @@
|
|
|
14
14
|
.c-editor-emotion{
|
|
15
15
|
max-height: 168px;
|
|
16
16
|
overflow: auto;
|
|
17
|
+
|
|
18
|
+
&::-webkit-scrollbar {
|
|
19
|
+
width: 4px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&::-webkit-scrollbar-track,
|
|
23
|
+
&::-webkit-scrollbar-track-piece {
|
|
24
|
+
background-color: #fafafa;
|
|
25
|
+
border-radius: 6px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&::-webkit-scrollbar-thumb {
|
|
29
|
+
background-color: #eee;
|
|
30
|
+
border-radius: 6px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&::-webkit-scrollbar-button,
|
|
34
|
+
&::-webkit-scrollbar-corner,
|
|
35
|
+
&::-webkit-resizer {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
17
38
|
}
|
|
18
39
|
|
|
19
40
|
.c-editor-tinymce {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-editor",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"description": "JX3BOX Article & Editor",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"last 2 versions"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@jx3box/jx3box-common": "^7.6.
|
|
34
|
+
"@jx3box/jx3box-common": "^7.6.2",
|
|
35
35
|
"@jx3box/jx3box-data": "^3.0.3",
|
|
36
|
-
"@jx3box/jx3box-emotion": "^1.1.
|
|
36
|
+
"@jx3box/jx3box-emotion": "^1.1.4",
|
|
37
37
|
"@jx3box/jx3box-macro": "^1.0.1",
|
|
38
38
|
"@jx3box/jx3box-talent": "^1.1.7",
|
|
39
39
|
"@jx3box/markdown": "^0.1.5",
|
package/src/Tinymce.vue
CHANGED
|
@@ -39,7 +39,7 @@ import Upload from "./Upload";
|
|
|
39
39
|
import Resource from "./Resource";
|
|
40
40
|
import BoxResource from "./BoxResource";
|
|
41
41
|
import { __cms } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
42
|
-
import { __ossRoot } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
42
|
+
import { __ossRoot, __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
|
|
43
43
|
import Emotion from "@jx3box/jx3box-emotion/src/Emotion.vue"
|
|
44
44
|
import hljs_languages from "../assets/js/item/hljs_languages.js"
|
|
45
45
|
const API_Root = process.env.NODE_ENV === "production" ? __cms : "/";
|
|
@@ -199,7 +199,8 @@ export default {
|
|
|
199
199
|
insertResource: function(data) {
|
|
200
200
|
tinyMCE.editors["tinymce"].insertContent(data);
|
|
201
201
|
},
|
|
202
|
-
emotionSelected: function(
|
|
202
|
+
emotionSelected: function(emotion) {
|
|
203
|
+
const src = `${__imgPath}emotion/output/${emotion.filename}`
|
|
203
204
|
const IMAGE = `<img class="t-emotion" src="${src}" alt="${src}" />`
|
|
204
205
|
tinyMCE.editors["tinymce"].insertContent(IMAGE)
|
|
205
206
|
},
|