zydx-plus 1.20.120 → 1.20.121

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": "zydx-plus",
3
- "version": "1.20.120",
3
+ "version": "1.20.121",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -193,13 +193,9 @@ class titleButtonMenu {
193
193
  exec(editor, value) {
194
194
  if (this.isDisabled(editor)) return
195
195
  const resume = {
196
- type: 'paragraph',
197
- children: [{
198
- type: 'titleAttachment',
199
- fileName: titleData.text,
200
- children: [{text:''}]
201
- }],
202
- textAlign: 'center'
196
+ type: 'titleAttachment',
197
+ fileName: titleData.text,
198
+ children: [{text:''}]
203
199
  }
204
200
  const resume2 = {
205
201
  type: 'paragraph',
@@ -233,13 +229,9 @@ class authorButtonMenu {
233
229
  exec(editor, value) {
234
230
  if (this.isDisabled(editor)) return
235
231
  const resume = {
236
- type: 'paragraph',
237
- children: [{
238
- type: 'authorAttachment',
239
- fileName: authorData.text,
240
- children: [{text:''}]
241
- }],
242
- textAlign: 'center'
232
+ type: 'authorAttachment',
233
+ fileName: authorData.text,
234
+ children: [{text:''}]
243
235
  }
244
236
  const resume2 = {
245
237
  type: 'paragraph',
@@ -17,7 +17,7 @@ function renderAttachment(elem, children, editor) {
17
17
  [ elem.fileName ]
18
18
  )
19
19
  const attachVnode = h(
20
- 'span',
20
+ 'p',
21
21
  {
22
22
  props: { contentEditable: false },
23
23
  style: { display: 'inline-block',position: 'relative'},
@@ -38,10 +38,10 @@ function titleAttachment(elem, children, editor) {
38
38
  [ elem.fileName ]
39
39
  )
40
40
  const attachVnode = h(
41
- 'span',
41
+ 'p',
42
42
  {
43
43
  props: { contentEditable: false },
44
- style: { display: 'inline-block'},
44
+ style: { textAlign: 'center'},
45
45
  // on: { click() { console.log('clicked', link) } }
46
46
  },
47
47
  [ iconText]
@@ -59,10 +59,10 @@ function authorAttachment(elem, children, editor) {
59
59
  [ elem.fileName ]
60
60
  )
61
61
  const attachVnode = h(
62
- 'span',
62
+ 'p',
63
63
  {
64
64
  props: { contentEditable: false },
65
- style: { display: 'inline-block'},
65
+ style: { textAlign: 'center'},
66
66
  // on: { click() { console.log('clicked', link) } }
67
67
  },
68
68
  [ iconText]
package/src/index.js CHANGED
@@ -63,7 +63,7 @@ function install(app) {
63
63
  }
64
64
 
65
65
  export default {
66
- version: '1.20.120',
66
+ version: '1.20.121',
67
67
  install,
68
68
  Calendar,
69
69
  Message,