Merge pull request #1587 from LucasXu0/fix_#1586

fix: #1586 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

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