mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: #1586 deleting an image causes the editor to enter a bad state
This commit is contained in:
parent
9f7f86a49a
commit
b5f6591daa
@ -30,6 +30,9 @@ class SimpleEditor extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
);
|
||||
editorState.logConfiguration
|
||||
..handler = debugPrint
|
||||
..level = LogLevel.all;
|
||||
onEditorStateChange(editorState);
|
||||
|
||||
return AppFlowyEditor(
|
||||
|
@ -91,7 +91,7 @@ class _ImageNodeWidgetState extends State<ImageNodeWidget>
|
||||
|
||||
@override
|
||||
Position end() {
|
||||
return Position(path: widget.node.path, offset: 1);
|
||||
return start();
|
||||
}
|
||||
|
||||
@override
|
||||
|
Loading…
Reference in New Issue
Block a user