Extracted loadSubedit logic to decouple from text selection.