fix: #1586 deleting an image causes the editor to enter a bad state

This commit is contained in:
Lucas.Xu 2022-12-20 09:37:18 +08:00
parent 9f7f86a49a
commit b5f6591daa
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