@seafile/sdoc-editor 2.0.38 → 2.0.39
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.
|
@@ -63,20 +63,22 @@ const onSetNodeType = (editor, element, type) => {
|
|
|
63
63
|
// Callout, List-item, Blockquote in multi_column
|
|
64
64
|
if ([_constants.CALL_OUT].includes(currentNodeInColumn.type)) {
|
|
65
65
|
(0, _helper.unwrapCallout)(editor);
|
|
66
|
+
return;
|
|
66
67
|
}
|
|
67
68
|
if ([_constants.ORDERED_LIST, _constants.UNORDERED_LIST].includes(currentNodeInColumn.type)) {
|
|
68
69
|
(0, _transforms.toggleList)(editor, currentNodeInColumn.type);
|
|
69
70
|
if ([..._constants.HEADERS].includes(type)) {
|
|
70
71
|
(0, _helpers5.setHeaderType)(editor, type);
|
|
71
72
|
}
|
|
73
|
+
return;
|
|
72
74
|
}
|
|
73
75
|
if ([_constants.BLOCKQUOTE].includes(currentNodeInColumn.type)) {
|
|
74
76
|
if ([..._constants.HEADERS].includes(type)) {
|
|
75
77
|
(0, _helpers5.setHeaderType)(editor, type);
|
|
76
78
|
}
|
|
77
79
|
(0, _helpers4.setBlockQuoteType)(editor, true);
|
|
80
|
+
return;
|
|
78
81
|
}
|
|
79
|
-
return;
|
|
80
82
|
} else {
|
|
81
83
|
// List-item, blockquote, callout is top node
|
|
82
84
|
if ([_constants.ORDERED_LIST, _constants.UNORDERED_LIST].includes(topNodeType)) {
|
|
@@ -84,17 +86,19 @@ const onSetNodeType = (editor, element, type) => {
|
|
|
84
86
|
if ([..._constants.HEADERS].includes(type)) {
|
|
85
87
|
(0, _helpers5.setHeaderType)(editor, type);
|
|
86
88
|
}
|
|
89
|
+
return;
|
|
87
90
|
}
|
|
88
91
|
if ([_constants.BLOCKQUOTE].includes(topNodeType)) {
|
|
89
92
|
if ([..._constants.HEADERS].includes(type)) {
|
|
90
93
|
(0, _helpers5.setHeaderType)(editor, type);
|
|
91
94
|
}
|
|
92
95
|
(0, _helpers4.setBlockQuoteType)(editor, true);
|
|
96
|
+
return;
|
|
93
97
|
}
|
|
94
98
|
if ([_constants.CALL_OUT].includes(topNodeType)) {
|
|
95
99
|
(0, _helper.unwrapCallout)(editor);
|
|
100
|
+
return;
|
|
96
101
|
}
|
|
97
|
-
return;
|
|
98
102
|
}
|
|
99
103
|
}
|
|
100
104
|
if (type === _constants.CHECK_LIST_ITEM) {
|