@jx3box/jx3box-editor 1.1.1 → 1.1.5
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/article.less
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// 编辑器内
|
|
2
|
+
.e-pz-iframe{
|
|
3
|
+
min-height: 24px;
|
|
4
|
+
border-radius: 4px;
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
background-color: #f1f8ff;
|
|
9
|
+
border: 1px solid #c8e1ff;
|
|
10
|
+
color: darken(#c8e1ff, 20%);
|
|
11
|
+
|
|
12
|
+
line-height: 40px !important;
|
|
13
|
+
padding: 0 10px 0 140px;
|
|
14
|
+
font-family: Monaco, Consolas, "Lucida Console", "Courier New", serif;
|
|
15
|
+
|
|
16
|
+
.pr;
|
|
17
|
+
&:after {
|
|
18
|
+
content: "JX3BOX·配装方案";
|
|
19
|
+
position: absolute;
|
|
20
|
+
.lt(8px);
|
|
21
|
+
background-color: darken(#c8e1ff, 20%);
|
|
22
|
+
color: #fff;
|
|
23
|
+
border-radius: 3px;
|
|
24
|
+
padding: 2px 8px;
|
|
25
|
+
line-height: 21px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
// 渲染模式隐藏
|
|
29
|
+
.c-article{
|
|
30
|
+
.e-pz-iframe{
|
|
31
|
+
display: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
// tinymce编辑器内展示
|
|
35
|
+
.c-article-editor{
|
|
36
|
+
.e-pz-iframe{
|
|
37
|
+
display: block;
|
|
38
|
+
}
|
|
39
|
+
}
|
package/package.json
CHANGED
package/src/Markdown.vue
CHANGED
|
@@ -64,10 +64,6 @@ export default {
|
|
|
64
64
|
type: Boolean,
|
|
65
65
|
default: true,
|
|
66
66
|
},
|
|
67
|
-
readOnly : {
|
|
68
|
-
type : Boolean,
|
|
69
|
-
default : false,
|
|
70
|
-
}
|
|
71
67
|
},
|
|
72
68
|
components: {
|
|
73
69
|
markdownEditor,
|
|
@@ -195,6 +191,7 @@ export default {
|
|
|
195
191
|
data,
|
|
196
192
|
render,
|
|
197
193
|
});
|
|
194
|
+
this.data = data
|
|
198
195
|
},
|
|
199
196
|
// 插入附件
|
|
200
197
|
insertAttachments: function(data) {
|
package/src/Tinymce.vue
CHANGED
|
@@ -59,7 +59,9 @@ export default {
|
|
|
59
59
|
convert_urls: false,
|
|
60
60
|
|
|
61
61
|
// 样式
|
|
62
|
+
// TODO:
|
|
62
63
|
content_css: `https://oss.jx3box.com/static/tinymce/skins/content/default/content.min.css`,
|
|
64
|
+
// content_css: `http://localhost:5000/skins/content/default/content.min.css`,
|
|
63
65
|
body_class: "c-article c-article-editor",
|
|
64
66
|
height: this.height || 800,
|
|
65
67
|
autosave_ask_before_unload: false,
|
|
@@ -73,10 +75,10 @@ export default {
|
|
|
73
75
|
"link autolink",
|
|
74
76
|
"hr lists advlist table codeinline codesample checklist foldtext latex",
|
|
75
77
|
"image emoticons media videox macro qixue talent2",
|
|
76
|
-
"
|
|
78
|
+
"code fullscreen wordcount powerpaste pagebreak printpage pz", // template anchor jx3icon autosave
|
|
77
79
|
],
|
|
78
80
|
toolbar: [
|
|
79
|
-
"undo | formatselect | fontsizeselect | forecolor backcolor | bold italic underline strikethrough superscript subscript | link unlink |
|
|
81
|
+
"undo | formatselect | fontsizeselect | forecolor backcolor | bold italic underline strikethrough superscript subscript | link unlink | fullscreen code", //restoredraft
|
|
80
82
|
"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
|
|
81
83
|
],
|
|
82
84
|
mobile: {
|
|
@@ -150,8 +152,8 @@ export default {
|
|
|
150
152
|
images_upload_credentials: true,
|
|
151
153
|
|
|
152
154
|
// Hook
|
|
153
|
-
setup: this.setup,
|
|
154
|
-
init_instance_callback: this.ready,
|
|
155
|
+
// setup: this.setup,
|
|
156
|
+
// init_instance_callback: this.ready,
|
|
155
157
|
|
|
156
158
|
// Template
|
|
157
159
|
// templates: [
|