zydx-plus 1.30.163 → 1.30.165
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
|
@@ -18,10 +18,10 @@ export function butJson (editor,data) {
|
|
|
18
18
|
{name: '(左)黑体5号', key: 'blackLeft5'},
|
|
19
19
|
],
|
|
20
20
|
html: {
|
|
21
|
-
blackCenter4: `<p data-signId="title" style="text-align: center;"><span style="font-weight: 700;color: rgb(0, 0, 0);font-size: 16px;font-family: SimHei">${menusData(data,'titleMenu')
|
|
22
|
-
blackLeft4: `<p data-signId="title" style="text-align: left;"><span style="font-weight: 700;color: rgb(0, 0, 0);font-size: 16px;font-family: SimHei">${menusData(data,'titleMenu')
|
|
23
|
-
blackCenter5: `<p data-signId="title" style="text-align: center;"><span style="font-weight: 700;color: rgb(0, 0, 0);font-size: 14px;font-family: SimHei">${menusData(data,'titleMenu')
|
|
24
|
-
blackLeft5: `<p data-signId="title" style="text-align: left;"><span style="font-weight: 700;color: rgb(0, 0, 0);font-size: 14px;font-family: SimHei">${menusData(data,'titleMenu')
|
|
21
|
+
blackCenter4: `<p data-signId="title" style="text-align: center;"><span style="font-weight: 700;color: rgb(0, 0, 0);font-size: 16px;font-family: SimHei">${menusData(data,'titleMenu').text}</span></p>`,
|
|
22
|
+
blackLeft4: `<p data-signId="title" style="text-align: left;"><span style="font-weight: 700;color: rgb(0, 0, 0);font-size: 16px;font-family: SimHei">${menusData(data,'titleMenu').text}</span></p>`,
|
|
23
|
+
blackCenter5: `<p data-signId="title" style="text-align: center;"><span style="font-weight: 700;color: rgb(0, 0, 0);font-size: 14px;font-family: SimHei">${menusData(data,'titleMenu').text}</span></p>`,
|
|
24
|
+
blackLeft5: `<p data-signId="title" style="text-align: left;"><span style="font-weight: 700;color: rgb(0, 0, 0);font-size: 14px;font-family: SimHei">${menusData(data,'titleMenu').text}</span></p>`,
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
textMenu: {
|
|
@@ -46,13 +46,13 @@ export function butJson (editor,data) {
|
|
|
46
46
|
name: '添加作者',
|
|
47
47
|
key: 'authorMenu',
|
|
48
48
|
menuKeys: [],
|
|
49
|
-
html: `<p <p contenteditable="false" data-signId="author" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 14px;">${menusData(data,'authorMenu')
|
|
49
|
+
html: `<p <p contenteditable="false" data-signId="author" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 14px;">${menusData(data,'authorMenu').text}</span></p>`
|
|
50
50
|
},
|
|
51
51
|
subjectMenu: {
|
|
52
52
|
name: '添加题目',
|
|
53
53
|
key: 'subjectMenu',
|
|
54
54
|
menuKeys: [],
|
|
55
|
-
html: `<p contenteditable="false" data-signId="subject" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 24px;">${menusData(data,'subjectMenu')
|
|
55
|
+
html: `<p contenteditable="false" data-signId="subject" style="text-align: center;"><span style="color: rgb(0, 0, 0);font-size: 24px;">${menusData(data,'subjectMenu').text}</span></p>`
|
|
56
56
|
},
|
|
57
57
|
paragraphMenu: {
|
|
58
58
|
name: '添加落款',
|
|
@@ -64,7 +64,7 @@ export function butJson (editor,data) {
|
|
|
64
64
|
name: '标注编号',
|
|
65
65
|
key: 'numberMenu',
|
|
66
66
|
menuKeys: [],
|
|
67
|
-
html: `<sup>【${menusData(data,'numberMenu')
|
|
67
|
+
html: `<sup>【${menusData(data,'numberMenu').text}】</sup>`
|
|
68
68
|
},
|
|
69
69
|
keywordMenu: {
|
|
70
70
|
name: '关键词',
|
|
@@ -116,7 +116,7 @@ function numSort(editor) {
|
|
|
116
116
|
let num = 1
|
|
117
117
|
const data = editor.getJSON().content
|
|
118
118
|
data.forEach((item, index) => {
|
|
119
|
-
const id = item
|
|
119
|
+
const id = item.attrs.signId
|
|
120
120
|
if(id) {
|
|
121
121
|
let arr = item.attrs.signId.split('-')[1]
|
|
122
122
|
num = Number(arr) + 1 > num ? Number(arr) + 1 : num
|
|
@@ -539,7 +539,7 @@ export default {
|
|
|
539
539
|
.read-only{
|
|
540
540
|
position: relative;
|
|
541
541
|
width: 794px;
|
|
542
|
-
margin: 0 auto
|
|
542
|
+
margin: 0 auto;
|
|
543
543
|
}
|
|
544
544
|
.read-only-page{
|
|
545
545
|
width: 100%;
|
|
@@ -549,6 +549,7 @@ export default {
|
|
|
549
549
|
box-sizing: border-box;
|
|
550
550
|
position: relative;
|
|
551
551
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
552
|
+
margin: 20px 0;
|
|
552
553
|
}
|
|
553
554
|
.read-only-p{
|
|
554
555
|
width: 100%;
|
|
@@ -16,7 +16,7 @@ export const FontSize = Extension.create({
|
|
|
16
16
|
attributes: {
|
|
17
17
|
fontSize: {
|
|
18
18
|
default: null,
|
|
19
|
-
parseHTML: element => element.style.fontSize
|
|
19
|
+
parseHTML: element => element.style.fontSize.replace(/['"]+/g, ''),
|
|
20
20
|
renderHTML: attributes => {
|
|
21
21
|
if (!attributes.fontSize) {
|
|
22
22
|
return {}
|