You can only edit text on a photo before you've saved your photo or if you've saved your photo and text layers as an editable project file. Once you've saved your photo and text layers as a JPG or PNG, the text is flattened and cannot easily be edited.