handleCloseSubEditor method
Handles the closing of a sub-editor.
This method calls the onCloseSubEditor callback with the provided subEditor
and then calls handleUpdateUI.
Implementation
void handleCloseSubEditor(SubEditor subEditor) {
onCloseSubEditor?.call(subEditor);
handleUpdateUI();
}