@seafile/sdoc-editor 2.0.14 → 2.0.15

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.
@@ -7,18 +7,3 @@
7
7
  .sdoc-context-menu .dropdown-item:hover {
8
8
  color: #fff;
9
9
  }
10
-
11
- /* Used in mention editor, to modify `mention` node */
12
- a[title^='__sdoc_mention__username'] {
13
- display: inline-block;
14
- padding: 0 2px;
15
- border: none;
16
- background-color: transparent;
17
- color: #1677ff !important;
18
- border-radius: 5px;
19
- cursor: pointer;
20
- }
21
-
22
- a[title^='__sdoc_mention__username']:hover {
23
- background-color: rgb(221, 236, 253);
24
- }
@@ -56,11 +56,5 @@
56
56
  padding: 0 2px;
57
57
  border: none;
58
58
  background-color: transparent;
59
- color: #1677ff;
60
- border-radius: 5px;
61
- cursor: pointer;
62
- }
63
-
64
- .sdoc-mention:hover {
65
- background-color: rgb(221, 236, 253);
59
+ cursor: default;
66
60
  }
@@ -95,19 +95,10 @@ const transformInlineChildren = (result, item) => {
95
95
 
96
96
  // mention
97
97
  if (item.type && item.type === 'mention') {
98
- const text = item.children[0].text;
99
- const username = item.username;
100
- const mention = {
101
- type: 'link',
102
- // eslint-disable-next-line no-script-url
103
- url: 'javascript:void(0)',
104
- title: `__sdoc_mention__username${username}`,
105
- children: [{
106
- type: 'text',
107
- value: text
108
- }]
109
- };
110
- result.push(mention);
98
+ result.push({
99
+ type: 'text',
100
+ value: item.children[0].text + ' '
101
+ });
111
102
  return result;
112
103
  }
113
104
  if (item.type && item.type === 'seatable_column') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/sdoc-editor",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "private": false,
5
5
  "description": "This is a sdoc editor",
6
6
  "main": "dist/index.js",