@jx3box/jx3box-editor 2.2.1 → 2.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-editor",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "JX3BOX Article & Editor",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -65,7 +65,7 @@
65
65
  <i class="el-icon-lollipop" style="margin-right: 5px"></i>
66
66
  <b>连招</b>
67
67
  </span>
68
- <ComboVue :query="query" ref="combo" :client="comboClient" :strict="strict"></ComboVue>
68
+ <ComboVue :query="query" ref="combo" :client="comboClient" :strict="strict" :subtype="subtype"></ComboVue>
69
69
  </el-tab-pane>
70
70
  <el-tab-pane label="信纸" name="letter">
71
71
  <span slot="label" class="u-tab-label">
@@ -123,6 +123,10 @@ export default {
123
123
  type: Boolean,
124
124
  default: true,
125
125
  },
126
+ subtype: {
127
+ type: String,
128
+ default: "通用",
129
+ }
126
130
  },
127
131
  data: function () {
128
132
  return {
package/src/Tinymce.vue CHANGED
@@ -5,7 +5,7 @@
5
5
  <div class="c-editor-header">
6
6
  <Upload v-if="attachmentEnable" @insert="insertAttachments" />
7
7
  <Resource v-if="resourceEnable" @insert="insertResource" />
8
- <BoxResource v-if="resourceEnable" @insert="insertResource" />
8
+ <BoxResource v-if="resourceEnable" @insert="insertResource" :subtype="subtype" />
9
9
  </div>
10
10
  <Emotion class="c-editor-emotion" @selected="emotionSelected"></Emotion>
11
11
 
@@ -37,7 +37,7 @@ Vue.directive("draggable", draggable);
37
37
 
38
38
  export default {
39
39
  name: "Tinymce",
40
- props: ["content", "height", "attachmentEnable", "resourceEnable"],
40
+ props: ["content", "height", "attachmentEnable", "resourceEnable", "subtype"],
41
41
  data: function () {
42
42
  return {
43
43
  data: this.content,