Merge pull request from

fix:  deleting an image causes the editor to enter a bad state
This commit is contained in:
Lucas.Xu 2022-12-20 09:57:15 +08:00 committed by GitHub
commit 079fab6118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions
frontend/app_flowy/packages/appflowy_editor
example/lib/pages
lib/src/render/image

View File

@ -30,6 +30,9 @@ class SimpleEditor extends StatelessWidget {
),
),
);
editorState.logConfiguration
..handler = debugPrint
..level = LogLevel.all;
onEditorStateChange(editorState);
return AppFlowyEditor(

View File

@ -91,7 +91,7 @@ class _ImageNodeWidgetState extends State<ImageNodeWidget>
@override
Position end() {
return Position(path: widget.node.path, offset: 1);
return start();
}
@override