handleInsertImage method
Shows the dialog to insert an image and inserts it if confirmed.
Implementation
void handleInsertImage(BuildContext context) async {
final result = await showImageInsertDialog(context, labels: document.labels);
if (result != null) {
final src = result['src']!;
document.saveState(description: 'Insert image', forceNewAction: true);
handleInsertNodeExceution(
'image',
document,
{'src': src},
);
}
}