zydx-plus 1.35.481 → 1.35.483
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
|
@@ -27,12 +27,12 @@ let buttonNames = {
|
|
|
27
27
|
headLevel: {
|
|
28
28
|
default: "demand",
|
|
29
29
|
demand: '学习要求',
|
|
30
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
30
|
+
singletonClass: this.getCurrentPrefix(item) + '学习',
|
|
31
31
|
allClass: this.getPrefix(item) + '情况',
|
|
32
32
|
},
|
|
33
33
|
otherLevel: {
|
|
34
34
|
default: "singletonClass",
|
|
35
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
35
|
+
singletonClass: this.getCurrentPrefix(item) + '学习',
|
|
36
36
|
allClass: this.getPrefix(item) + '情况'
|
|
37
37
|
},
|
|
38
38
|
lowLevel: {
|
|
@@ -152,7 +152,7 @@ let buttonNames = {
|
|
|
152
152
|
headLevel: {
|
|
153
153
|
default: "demand",
|
|
154
154
|
demand: '检测要求',
|
|
155
|
-
|
|
155
|
+
quest:'全课试题',
|
|
156
156
|
singletonClass: '课级检测',
|
|
157
157
|
allClass: this.getPrefix(item) + '情况',
|
|
158
158
|
},
|
|
@@ -290,12 +290,12 @@ let buttonNames = {
|
|
|
290
290
|
headLevel: {
|
|
291
291
|
default: "demand",
|
|
292
292
|
demand: '回答要求',
|
|
293
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
293
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
294
294
|
allClass: this.getPrefix(item) + '情况',
|
|
295
295
|
},
|
|
296
296
|
otherLevel: {
|
|
297
297
|
default: "singletonClass",
|
|
298
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
298
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
299
299
|
allClass: this.getPrefix(item) + '情况',
|
|
300
300
|
},
|
|
301
301
|
lowLevel: {
|
|
@@ -309,12 +309,12 @@ let buttonNames = {
|
|
|
309
309
|
2: {
|
|
310
310
|
headLevel: {
|
|
311
311
|
default: "singletonClass",
|
|
312
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
312
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
313
313
|
allClass: this.getPrefix(item) + '情况',
|
|
314
314
|
},
|
|
315
315
|
otherLevel: {
|
|
316
316
|
default: "singletonClass",
|
|
317
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
317
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
318
318
|
allClass: this.getPrefix(item) + '情况',
|
|
319
319
|
},
|
|
320
320
|
lowLevel: {
|
|
@@ -407,7 +407,7 @@ let buttonNames = {
|
|
|
407
407
|
},
|
|
408
408
|
lowLevel: {
|
|
409
409
|
default: "singletonClass",
|
|
410
|
-
singletonClass: '
|
|
410
|
+
singletonClass: '思考任务',
|
|
411
411
|
score: '成绩报告',
|
|
412
412
|
analysis: '统计分析',
|
|
413
413
|
power: '学习动力'
|
|
@@ -526,7 +526,7 @@ let buttonNames = {
|
|
|
526
526
|
},
|
|
527
527
|
lowLevel: {
|
|
528
528
|
default: "singletonClass",
|
|
529
|
-
singletonClass: '
|
|
529
|
+
singletonClass: '讨论任务',
|
|
530
530
|
score: '成绩报告',
|
|
531
531
|
analysis: '统计分析',
|
|
532
532
|
power: '学习动力'
|
|
@@ -545,7 +545,7 @@ let buttonNames = {
|
|
|
545
545
|
},
|
|
546
546
|
lowLevel: {
|
|
547
547
|
default: "singletonClass",
|
|
548
|
-
singletonClass: '
|
|
548
|
+
singletonClass: '讨论任务',
|
|
549
549
|
score: '成绩报告',
|
|
550
550
|
analysis: '统计分析',
|
|
551
551
|
power: '学习动力'
|
|
@@ -570,7 +570,7 @@ let buttonNames = {
|
|
|
570
570
|
},
|
|
571
571
|
lowLevel: {
|
|
572
572
|
default: "singletonClass",
|
|
573
|
-
singletonClass: '
|
|
573
|
+
singletonClass: '风暴任务',
|
|
574
574
|
score: '成绩报告',
|
|
575
575
|
analysis: '统计分析',
|
|
576
576
|
power: '学习动力'
|
|
@@ -589,7 +589,7 @@ let buttonNames = {
|
|
|
589
589
|
},
|
|
590
590
|
lowLevel: {
|
|
591
591
|
default: "singletonClass",
|
|
592
|
-
singletonClass: '
|
|
592
|
+
singletonClass: '风暴任务',
|
|
593
593
|
score: '成绩报告',
|
|
594
594
|
analysis: '统计分析',
|
|
595
595
|
power: '学习动力'
|
|
@@ -695,12 +695,12 @@ let buttonNames = {
|
|
|
695
695
|
headLevel: {
|
|
696
696
|
default: "demand",
|
|
697
697
|
demand: '学习要求',
|
|
698
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
698
|
+
singletonClass: this.getCurrentPrefix(item) + '学习',
|
|
699
699
|
allClass: this.getPrefix(item) + '情况',
|
|
700
700
|
},
|
|
701
701
|
otherLevel: {
|
|
702
702
|
default: "singletonClass",
|
|
703
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
703
|
+
singletonClass: this.getCurrentPrefix(item) + '学习',
|
|
704
704
|
allClass: this.getPrefix(item) + '情况',
|
|
705
705
|
},
|
|
706
706
|
lowLevel: {
|
|
@@ -714,12 +714,12 @@ let buttonNames = {
|
|
|
714
714
|
2: {
|
|
715
715
|
headLevel: {
|
|
716
716
|
default: "singletonClass",
|
|
717
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
717
|
+
singletonClass: this.getCurrentPrefix(item) + '学习',
|
|
718
718
|
allClass: this.getPrefix(item) + '情况',
|
|
719
719
|
},
|
|
720
720
|
otherLevel: {
|
|
721
721
|
default: "singletonClass",
|
|
722
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
722
|
+
singletonClass: this.getCurrentPrefix(item) + '学习',
|
|
723
723
|
allClass: this.getPrefix(item) + '情况',
|
|
724
724
|
},
|
|
725
725
|
lowLevel: {
|
|
@@ -787,12 +787,12 @@ let buttonNames = {
|
|
|
787
787
|
headLevel: {
|
|
788
788
|
default: "demand",
|
|
789
789
|
demand: '学习要求',
|
|
790
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
790
|
+
singletonClass: this.getCurrentPrefix(item) + '学习',
|
|
791
791
|
allClass: this.getPrefix(item) + '情况',
|
|
792
792
|
},
|
|
793
793
|
otherLevel: {
|
|
794
794
|
default: "singletonClass",
|
|
795
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
795
|
+
singletonClass: this.getCurrentPrefix(item) + '学习',
|
|
796
796
|
allClass: this.getPrefix(item) + '情况',
|
|
797
797
|
},
|
|
798
798
|
lowLevel: {
|
|
@@ -806,12 +806,12 @@ let buttonNames = {
|
|
|
806
806
|
2: {
|
|
807
807
|
headLevel: {
|
|
808
808
|
default: "singletonClass",
|
|
809
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
809
|
+
singletonClass: this.getCurrentPrefix(item) + '学习',
|
|
810
810
|
allClass: this.getPrefix(item) + '情况',
|
|
811
811
|
},
|
|
812
812
|
otherLevel: {
|
|
813
813
|
default: "singletonClass",
|
|
814
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
814
|
+
singletonClass: this.getCurrentPrefix(item) + '学习',
|
|
815
815
|
allClass: this.getPrefix(item) + '情况',
|
|
816
816
|
},
|
|
817
817
|
lowLevel: {
|
|
@@ -878,12 +878,12 @@ let buttonNames = {
|
|
|
878
878
|
headLevel: {
|
|
879
879
|
default: "demand",
|
|
880
880
|
demand: '聆听要求',
|
|
881
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
881
|
+
singletonClass: this.getCurrentPrefix(item) + '聆听',
|
|
882
882
|
allClass: this.getPrefix(item) + '情况',
|
|
883
883
|
},
|
|
884
884
|
otherLevel: {
|
|
885
885
|
default: "singletonClass",
|
|
886
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
886
|
+
singletonClass: this.getCurrentPrefix(item) + '聆听',
|
|
887
887
|
allClass: this.getPrefix(item) + '情况',
|
|
888
888
|
},
|
|
889
889
|
lowLevel: {
|
|
@@ -897,12 +897,12 @@ let buttonNames = {
|
|
|
897
897
|
2: {
|
|
898
898
|
headLevel: {
|
|
899
899
|
default: "singletonClass",
|
|
900
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
900
|
+
singletonClass: this.getCurrentPrefix(item) + '聆听',
|
|
901
901
|
allClass: this.getPrefix(item) + '情况',
|
|
902
902
|
},
|
|
903
903
|
otherLevel: {
|
|
904
904
|
default: "singletonClass",
|
|
905
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
905
|
+
singletonClass: this.getCurrentPrefix(item) + '聆听',
|
|
906
906
|
allClass: this.getPrefix(item) + '情况',
|
|
907
907
|
},
|
|
908
908
|
lowLevel: {
|
|
@@ -951,7 +951,7 @@ let buttonNames = {
|
|
|
951
951
|
},
|
|
952
952
|
lowLevel: {
|
|
953
953
|
default: "singletonClass",
|
|
954
|
-
singletonClass: '
|
|
954
|
+
singletonClass: '阅读任务',
|
|
955
955
|
score: '成绩报告',
|
|
956
956
|
analysis: '统计分析',
|
|
957
957
|
power: '学习动力'
|
|
@@ -1038,7 +1038,7 @@ let buttonNames = {
|
|
|
1038
1038
|
},
|
|
1039
1039
|
lowLevel: {
|
|
1040
1040
|
default: "singletonClass",
|
|
1041
|
-
singletonClass: '
|
|
1041
|
+
singletonClass: '实践任务',
|
|
1042
1042
|
score: '成绩报告',
|
|
1043
1043
|
analysis: '统计分析',
|
|
1044
1044
|
power: '学习动力'
|
|
@@ -1053,12 +1053,12 @@ let buttonNames = {
|
|
|
1053
1053
|
headLevel: {
|
|
1054
1054
|
default: "demand",
|
|
1055
1055
|
demand: '创新要求',
|
|
1056
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1056
|
+
singletonClass: this.getCurrentPrefix(item) + '创新',
|
|
1057
1057
|
allClass: this.getPrefix(item) + '情况',
|
|
1058
1058
|
},
|
|
1059
1059
|
otherLevel: {
|
|
1060
1060
|
default: "singletonClass",
|
|
1061
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1061
|
+
singletonClass: this.getCurrentPrefix(item) + '创新',
|
|
1062
1062
|
allClass: this.getPrefix(item) + '情况',
|
|
1063
1063
|
},
|
|
1064
1064
|
lowLevel: {
|
|
@@ -1073,12 +1073,12 @@ let buttonNames = {
|
|
|
1073
1073
|
2: {
|
|
1074
1074
|
headLevel: {
|
|
1075
1075
|
default: "singletonClass",
|
|
1076
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1076
|
+
singletonClass: this.getCurrentPrefix(item) + '创新',
|
|
1077
1077
|
allClass: this.getPrefix(item) + '情况',
|
|
1078
1078
|
},
|
|
1079
1079
|
otherLevel: {
|
|
1080
1080
|
default: "singletonClass",
|
|
1081
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1081
|
+
singletonClass: this.getCurrentPrefix(item) + '创新',
|
|
1082
1082
|
allClass: this.getPrefix(item) + '情况',
|
|
1083
1083
|
},
|
|
1084
1084
|
lowLevel: {
|
|
@@ -1484,12 +1484,12 @@ let buttonNames = {
|
|
|
1484
1484
|
headLevel: {
|
|
1485
1485
|
default: "demand",
|
|
1486
1486
|
demand: '回答要求',
|
|
1487
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1487
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
1488
1488
|
allClass: this.getPrefix(item) + '情况',
|
|
1489
1489
|
},
|
|
1490
1490
|
otherLevel: {
|
|
1491
1491
|
default: "singletonClass",
|
|
1492
|
-
singletonClass: this.getCurrentPrefix(item) + '
|
|
1492
|
+
singletonClass: this.getCurrentPrefix(item) + '追问',
|
|
1493
1493
|
allClass: this.getPrefix(item) + '情况',
|
|
1494
1494
|
},
|
|
1495
1495
|
lowLevel: {
|
|
@@ -11,11 +11,15 @@ export const CustomImage = Image.extend({
|
|
|
11
11
|
addAttributes() {
|
|
12
12
|
return {
|
|
13
13
|
width: {
|
|
14
|
-
default:
|
|
14
|
+
default: null,
|
|
15
|
+
parseHTML: (element) => element.getAttribute('width'),
|
|
15
16
|
renderHTML: attributes => {
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
if (attributes.width) {
|
|
18
|
+
return {
|
|
19
|
+
width: attributes.width
|
|
20
|
+
};
|
|
18
21
|
}
|
|
22
|
+
return {};
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
:editor="editor"
|
|
32
32
|
:tippy-options="{ duration: 100}"
|
|
33
33
|
:shouldShow="shouldShowFn"
|
|
34
|
-
v-if="editor"
|
|
34
|
+
v-if="editor && readOnly"
|
|
35
35
|
v-show="showBubble"
|
|
36
36
|
>
|
|
37
37
|
<div class="bubbleMenu">
|
|
@@ -370,7 +370,6 @@ export default {
|
|
|
370
370
|
enablePasteRules: true,
|
|
371
371
|
extensions: [
|
|
372
372
|
sid,
|
|
373
|
-
StarterKit,
|
|
374
373
|
textStyle,
|
|
375
374
|
FontSize,
|
|
376
375
|
titleId,
|
|
@@ -391,6 +390,7 @@ export default {
|
|
|
391
390
|
class: `editor-img`,
|
|
392
391
|
}
|
|
393
392
|
}),
|
|
393
|
+
StarterKit,
|
|
394
394
|
],
|
|
395
395
|
onUpdate: ({editor}) => {
|
|
396
396
|
_this.$emit('updateData', {
|
|
@@ -408,7 +408,7 @@ export default {
|
|
|
408
408
|
},
|
|
409
409
|
})
|
|
410
410
|
document.addEventListener('keydown', function (e) {
|
|
411
|
-
|
|
411
|
+
if (e.keyCode === 8 || e.keyCode === 46) {
|
|
412
412
|
const sid = _this.editor.state.selection.$anchor.parent.attrs.sid
|
|
413
413
|
if (sid === 'prohibit') {
|
|
414
414
|
_this.editor.setEditable(false);
|
|
@@ -867,7 +867,24 @@ export default {
|
|
|
867
867
|
toolTap(v) {
|
|
868
868
|
// 获取当前选中的节点
|
|
869
869
|
const {$anchor} = this.editor.state.selection
|
|
870
|
-
|
|
870
|
+
console.log(this.editor.chain().focus());
|
|
871
|
+
console.log($anchor);
|
|
872
|
+
if ($anchor.path[3].attrs.titleId === 'source') {
|
|
873
|
+
let html = this.editor.getHTML()
|
|
874
|
+
html += '<p></p>'
|
|
875
|
+
this.editor.commands.setContent(html)
|
|
876
|
+
}
|
|
877
|
+
if (v === 'add') {
|
|
878
|
+
let html = this.editor.getHTML()
|
|
879
|
+
html += '<p class="source" style="text-align: right;"></p>'
|
|
880
|
+
this.editor.commands.setContent(html)
|
|
881
|
+
}
|
|
882
|
+
if (v === 'lookUp') {
|
|
883
|
+
let html = this.editor.getHTML()
|
|
884
|
+
html = '<p class="lookUp" style="text-align: left;"></p>' + html
|
|
885
|
+
this.editor.commands.setContent(html)
|
|
886
|
+
this.editor.chain().focus().setTextSelection(0).run()
|
|
887
|
+
}
|
|
871
888
|
if (v === 'h1') this.editor.chain().focus().setFontSize('18px').setBold().run()
|
|
872
889
|
if (v === 'h2') this.editor.chain().focus().setFontSize('16px').setBold().run()
|
|
873
890
|
if (v === 'h3') this.editor.chain().focus().setFontSize('14px').setBold().run()
|
|
@@ -877,11 +894,6 @@ export default {
|
|
|
877
894
|
}
|
|
878
895
|
if (v === 'bold') this.editor.chain().focus().toggleBold().run()
|
|
879
896
|
if (v === 'center' || v === 'left' || v === 'right') this.editor.chain().focus().setTextAlign(v).run()
|
|
880
|
-
if (v === 'add') {
|
|
881
|
-
let html = this.editor.getHTML()
|
|
882
|
-
html += '<p class="source" style="text-align: right;"></p>'
|
|
883
|
-
this.editor.commands.setContent(html)
|
|
884
|
-
}
|
|
885
897
|
if (v === 'centerH2') {
|
|
886
898
|
this.editor.chain().focus().setFontSize('16px').setTextAlign('center').run()
|
|
887
899
|
this.editor.chain().focus().setBold().run()
|
|
@@ -1011,6 +1023,17 @@ export default {
|
|
|
1011
1023
|
height: 0;
|
|
1012
1024
|
pointer-events: none;
|
|
1013
1025
|
}
|
|
1026
|
+
:deep(.lookUp) {
|
|
1027
|
+
text-indent: 0;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
:deep(.lookUp).is-empty::before {
|
|
1031
|
+
color: #adb5bd;
|
|
1032
|
+
content: '添加抬头';
|
|
1033
|
+
float: left;
|
|
1034
|
+
height: 0;
|
|
1035
|
+
pointer-events: none;
|
|
1036
|
+
}
|
|
1014
1037
|
|
|
1015
1038
|
:deep(.editor-img) {
|
|
1016
1039
|
max-width: 100%;
|
|
@@ -11,11 +11,15 @@ export const CustomImage = Image.extend({
|
|
|
11
11
|
addAttributes() {
|
|
12
12
|
return {
|
|
13
13
|
width: {
|
|
14
|
-
default:
|
|
14
|
+
default: null,
|
|
15
|
+
parseHTML: (element) => element.getAttribute('width'),
|
|
15
16
|
renderHTML: attributes => {
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
if (attributes.width) {
|
|
18
|
+
return {
|
|
19
|
+
width: attributes.width
|
|
20
|
+
};
|
|
18
21
|
}
|
|
22
|
+
return {};
|
|
19
23
|
}
|
|
20
24
|
}
|
|
21
25
|
}
|