@seafile/sdoc-editor 3.0.142 → 3.0.143
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.
|
@@ -25,19 +25,19 @@ var onToolbarTrigger = function onToolbarTrigger(data, editor) {
|
|
|
25
25
|
newType = _constants.PARAGRAPH;
|
|
26
26
|
}
|
|
27
27
|
(0, _helpers2.setHeaderType)(editor, newType);
|
|
28
|
-
return;
|
|
28
|
+
return true;
|
|
29
29
|
}
|
|
30
30
|
if (type === _constants.UNDO) {
|
|
31
31
|
editor.undo();
|
|
32
|
-
return;
|
|
32
|
+
return true;
|
|
33
33
|
}
|
|
34
34
|
if (type === _constants.REDO) {
|
|
35
35
|
editor.redo();
|
|
36
|
-
return;
|
|
36
|
+
return true;
|
|
37
37
|
}
|
|
38
38
|
if (type === _constants.UNORDERED_LIST || type === _constants.ORDERED_LIST) {
|
|
39
39
|
(0, _helpers3.setListType)(editor, type);
|
|
40
|
-
return;
|
|
40
|
+
return true;
|
|
41
41
|
}
|
|
42
42
|
if (type === _constants.CHECK_LIST_ITEM) {
|
|
43
43
|
var _nodeEntry = (0, _core.getNearestBlockNode)(editor);
|
|
@@ -47,7 +47,7 @@ var onToolbarTrigger = function onToolbarTrigger(data, editor) {
|
|
|
47
47
|
_newType = _constants.PARAGRAPH;
|
|
48
48
|
}
|
|
49
49
|
(0, _helpers.setCheckListItemType)(editor, _newType);
|
|
50
|
-
return;
|
|
50
|
+
return true;
|
|
51
51
|
}
|
|
52
52
|
if (type === _constants.LOCAL_IMAGE) {
|
|
53
53
|
var eventBus = _eventBus["default"].getInstance();
|
|
@@ -55,7 +55,7 @@ var onToolbarTrigger = function onToolbarTrigger(data, editor) {
|
|
|
55
55
|
type: _constants.LOCAL_IMAGE,
|
|
56
56
|
editor: editor
|
|
57
57
|
});
|
|
58
|
-
return;
|
|
58
|
+
return true;
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
var updateEditorHistory = exports.updateEditorHistory = function updateEditorHistory(editor) {
|
|
@@ -149,6 +149,7 @@ var InsertElementDialog = function InsertElementDialog(_ref) {
|
|
|
149
149
|
linkTitle = _ref4.linkTitle,
|
|
150
150
|
handleSubmit = _ref4.handleSubmit,
|
|
151
151
|
data = _ref4.data;
|
|
152
|
+
console.log('android test: xiaoqiang test');
|
|
152
153
|
setInsertPosition(insertPosition);
|
|
153
154
|
setSlateNode(slateNode);
|
|
154
155
|
setElement(element);
|
|
@@ -171,6 +172,7 @@ var InsertElementDialog = function InsertElementDialog(_ref) {
|
|
|
171
172
|
setData(data);
|
|
172
173
|
if (type === _constants2.LOCAL_IMAGE) {
|
|
173
174
|
setTimeout(function () {
|
|
175
|
+
console.log('android test: xiaoqiang test 2');
|
|
174
176
|
uploadLocalImageInputRef.current && uploadLocalImageInputRef.current.click();
|
|
175
177
|
}, 0);
|
|
176
178
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.143",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "3fc6a2d8bb580c05385814d3d96bd7bcd1136f40"
|
|
76
76
|
}
|