@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.
@@ -23,6 +23,7 @@
23
23
  @import "tinymce/video.less";
24
24
  @import "tinymce/macro.less";
25
25
  @import "tinymce/qixue.less";
26
+ @import "tinymce/pz.less";
26
27
 
27
28
  @import "module/directory.less";
28
29
  @import "module/icon.less";
@@ -21,6 +21,7 @@
21
21
  font-weight: normal;
22
22
  flex-grow: 1;
23
23
  text-shadow: 1px 1px 1px #0f2222;
24
+ line-height: 20px;
24
25
  }
25
26
 
26
27
  .w-buff-name {
@@ -21,6 +21,7 @@
21
21
  font-weight: normal;
22
22
  flex-grow: 1;
23
23
  text-shadow: 1px 1px 1px #0f2222;
24
+ line-height: 20px;
24
25
  }
25
26
 
26
27
  .w-skill-name {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "1.1.1",
3
+ "version": "1.1.5",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
- "autosave code fullscreen wordcount powerpaste pagebreak printpage pz", // template anchor jx3icon
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 | restoredraft fullscreen code",
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: [