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