@seafile/sdoc-editor 2.0.136 → 2.0.138
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/dist/extension/plugins/file-link/hover-menu/index.css +3 -3
- package/dist/extension/plugins/image/hover-menu/index.css +1 -1
- package/dist/extension/plugins/link/plugin.js +3 -1
- package/dist/extension/plugins/mention/plugin.js +3 -1
- package/dist/extension/plugins/quick-insert/plugin/index.js +3 -1
- package/dist/extension/plugins/whiteboard/hover-menu/index.css +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
z-index: 101;
|
|
5
5
|
width: auto;
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
.sdoc-file-link-hover-menu-container .hover-menu-container {
|
|
9
9
|
height: 36px;
|
|
10
10
|
padding: 7px 8px;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
border: 1px solid #e8e8e8;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.sdoc-file-link-hover-menu-container .hover-menu-container
|
|
20
|
+
.sdoc-file-link-hover-menu-container .hover-menu-container>span:not(:last-of-type) {
|
|
21
21
|
padding-right: 8px;
|
|
22
22
|
border-right: 1px solid #e5e5e5;
|
|
23
23
|
}
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
.sdoc-file-link-hover-menu-container .hover-menu-container .icon-font {
|
|
71
71
|
font-size: 12px;
|
|
72
|
-
color: #
|
|
72
|
+
color: #444444;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.sdoc-file-link-hover-menu-container .sdoc-file-display-style-popover {
|
|
@@ -25,7 +25,8 @@ var withLink = function withLink(editor) {
|
|
|
25
25
|
isInline = editor.isInline,
|
|
26
26
|
insertData = editor.insertData,
|
|
27
27
|
insertFragment = editor.insertFragment,
|
|
28
|
-
onHotKeyDown = editor.onHotKeyDown
|
|
28
|
+
onHotKeyDown = editor.onHotKeyDown,
|
|
29
|
+
onCompositionStart = editor.onCompositionStart;
|
|
29
30
|
var newEditor = editor;
|
|
30
31
|
|
|
31
32
|
// Rewrite isInline
|
|
@@ -183,6 +184,7 @@ var withLink = function withLink(editor) {
|
|
|
183
184
|
return true;
|
|
184
185
|
}
|
|
185
186
|
}
|
|
187
|
+
return onCompositionStart && onCompositionStart(e);
|
|
186
188
|
};
|
|
187
189
|
return newEditor;
|
|
188
190
|
};
|
|
@@ -19,7 +19,8 @@ var withMention = function withMention(editor) {
|
|
|
19
19
|
isInline = editor.isInline,
|
|
20
20
|
deleteBackward = editor.deleteBackward,
|
|
21
21
|
deleteForward = editor.deleteForward,
|
|
22
|
-
normalizeNode = editor.normalizeNode
|
|
22
|
+
normalizeNode = editor.normalizeNode,
|
|
23
|
+
onCompositionStart = editor.onCompositionStart;
|
|
23
24
|
var newEditor = editor;
|
|
24
25
|
var eventBus = _eventBus["default"].getInstance();
|
|
25
26
|
newEditor.insertText = function (text) {
|
|
@@ -210,6 +211,7 @@ var withMention = function withMention(editor) {
|
|
|
210
211
|
event.preventDefault();
|
|
211
212
|
return true;
|
|
212
213
|
}
|
|
214
|
+
return onCompositionStart && onCompositionStart(event);
|
|
213
215
|
};
|
|
214
216
|
newEditor.onCompositionEnd = function (event) {
|
|
215
217
|
var PrevMentionIptEntry = (0, _helper.getPrevMentionIptEntry)(newEditor);
|
|
@@ -17,7 +17,8 @@ var withQuickInsert = function withQuickInsert(editor) {
|
|
|
17
17
|
onHotKeyDown = editor.onHotKeyDown,
|
|
18
18
|
isInline = editor.isInline,
|
|
19
19
|
deleteBackward = editor.deleteBackward,
|
|
20
|
-
deleteForward = editor.deleteForward
|
|
20
|
+
deleteForward = editor.deleteForward,
|
|
21
|
+
onCompositionStart = editor.onCompositionStart;
|
|
21
22
|
var newEditor = editor;
|
|
22
23
|
newEditor.isSlashKey = false;
|
|
23
24
|
newEditor.insertText = function (text) {
|
|
@@ -159,6 +160,7 @@ var withQuickInsert = function withQuickInsert(editor) {
|
|
|
159
160
|
event.preventDefault();
|
|
160
161
|
return true;
|
|
161
162
|
}
|
|
163
|
+
return onCompositionStart && onCompositionStart(event);
|
|
162
164
|
};
|
|
163
165
|
newEditor.isInline = function (element) {
|
|
164
166
|
if ([_constants2.QUICK_INSERT].includes(element.type)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.138",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "e37c22df522d41b67c793fd7b6f9b498ec691d17"
|
|
74
74
|
}
|