Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: #1586 deleting an image causes the editor to enter a bad state
Lucas.Xub5f6591daab5
diff --git a/frontend/app_flowy/packages/appflowy_editor/example/lib/pages/simple_editor.dart b/frontend/app_flowy/packages/appflowy_editor/example/lib/pages/simple_editor.dartindex f8214d9b03..23fcca5af6 100644--- a/frontend/app_flowy/packages/appflowy_editor/example/lib/pages/simple_editor.dart+++ b/frontend/app_flowy/packages/appflowy_editor/example/lib/pages/simple_editor.dart@@ -30,6 +30,9 @@ class SimpleEditor extends StatelessWidget {),),);+ editorState.logConfiguration+ ..handler = debugPrint+ ..level = LogLevel.all;onEditorStateChange(editorState);return AppFlowyEditor(diff --git a/frontend/app_flowy/packages/appflowy_editor/lib/src/render/image/image_node_widget.dart b/frontend/app_flowy/packages/appflowy_editor/lib/src/render/image/image_node_widget.dartindex bebeeb6c3f..1a0d63862b 100644--- a/frontend/app_flowy/packages/appflowy_editor/lib/src/render/image/image_node_widget.dart+++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/render/image/image_node_widget.dart@@ -91,7 +91,7 @@ class _ImageNodeWidgetState extends State<ImageNodeWidget>@overridePosition end() {- return Position(path: widget.node.path, offset: 1);+ return start();}@override