@lobehub/editor 2.0.3 → 2.0.5
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.
|
@@ -264,11 +264,18 @@ function handleRemove(editor, key, delay) {
|
|
|
264
264
|
originDiffNode.remove();
|
|
265
265
|
return;
|
|
266
266
|
}
|
|
267
|
-
case 'listItemModify':
|
|
268
267
|
case 'modify':
|
|
269
268
|
{
|
|
270
269
|
var children = originDiffNode.getChildren();
|
|
271
|
-
|
|
270
|
+
var newDiff = $createDiffNode('remove');
|
|
271
|
+
newDiff.append(children[0]);
|
|
272
|
+
originDiffNode.replace(newDiff, false);
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
case 'listItemModify':
|
|
276
|
+
{
|
|
277
|
+
var _children = originDiffNode.getChildren();
|
|
278
|
+
originDiffNode.replace(_children[0], false).selectEnd();
|
|
272
279
|
return;
|
|
273
280
|
}
|
|
274
281
|
case 'remove':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "A powerful and extensible rich text editor built on Meta's Lexical framework, providing a modern editing experience with React integration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@floating-ui/dom": "^1.7.4",
|
|
31
31
|
"@floating-ui/react": "^0.27.16",
|
|
32
|
-
"@lexical/code": "^0.
|
|
33
|
-
"@lexical/code-shiki": "^0.
|
|
34
|
-
"@lexical/dragon": "^0.
|
|
35
|
-
"@lexical/history": "^0.
|
|
36
|
-
"@lexical/link": "^0.
|
|
37
|
-
"@lexical/list": "^0.
|
|
38
|
-
"@lexical/rich-text": "^0.
|
|
39
|
-
"@lexical/selection": "^0.
|
|
40
|
-
"@lexical/table": "^0.
|
|
41
|
-
"@lexical/utils": "^0.
|
|
32
|
+
"@lexical/code": "^0.38.2",
|
|
33
|
+
"@lexical/code-shiki": "^0.38.2",
|
|
34
|
+
"@lexical/dragon": "^0.38.2",
|
|
35
|
+
"@lexical/history": "^0.38.2",
|
|
36
|
+
"@lexical/link": "^0.38.2",
|
|
37
|
+
"@lexical/list": "^0.38.2",
|
|
38
|
+
"@lexical/rich-text": "^0.38.2",
|
|
39
|
+
"@lexical/selection": "^0.38.2",
|
|
40
|
+
"@lexical/table": "^0.38.2",
|
|
41
|
+
"@lexical/utils": "^0.38.2",
|
|
42
42
|
"@shikijs/core": "^3.20.0",
|
|
43
43
|
"@shikijs/engine-javascript": "^3.20.0",
|
|
44
44
|
"@xmldom/xmldom": "^0.8.11",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"eventemitter3": "^5.0.1",
|
|
49
49
|
"fuse.js": "^7.1.0",
|
|
50
50
|
"katex": "^0.16.27",
|
|
51
|
-
"lexical": "^0.
|
|
51
|
+
"lexical": "^0.38.2",
|
|
52
52
|
"lodash-es": "^4.17.22",
|
|
53
53
|
"lucide-react": "^0.562.0",
|
|
54
54
|
"motion": "^12.23.26",
|