fix: unable to redo/undo in lists and data loss issues (#4739)

This commit is contained in:
Lucas.Xu 2024-02-26 13:21:36 +07:00 committed by GitHub
parent dfe3b0a929
commit 93664167e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 6 deletions

View File

@ -18,9 +18,11 @@ CharacterShortcutEvent formatGreaterToToggleList = CharacterShortcutEvent(
editorState, editorState,
(node) => node.type != ToggleListBlockKeys.type, (node) => node.type != ToggleListBlockKeys.type,
(_, text, __) => text == _greater, (_, text, __) => text == _greater,
(_, node, delta) => toggleListBlockNode( (_, node, delta) => [
toggleListBlockNode(
delta: delta.compose(Delta()..delete(_greater.length)), delta: delta.compose(Delta()..delete(_greater.length)),
), ),
],
), ),
); );

View File

@ -53,8 +53,8 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: "0a84917" ref: "9d90053"
resolved-ref: "0a84917e71cc44c9151f2f59aba72bcdacc66e57" resolved-ref: "9d9005366ba8383e93029c4f2f006f9ff8d1cb08"
url: "https://github.com/AppFlowy-IO/appflowy-editor.git" url: "https://github.com/AppFlowy-IO/appflowy-editor.git"
source: git source: git
version: "2.3.2" version: "2.3.2"

View File

@ -167,7 +167,7 @@ dependency_overrides:
appflowy_editor: appflowy_editor:
git: git:
url: https://github.com/AppFlowy-IO/appflowy-editor.git url: https://github.com/AppFlowy-IO/appflowy-editor.git
ref: "0a84917" ref: "9d90053"
sheet: sheet:
git: git: