Thanks. That is one of the things I already tried. You are right that this achieves the goal of having the attachment alone on the line.
The problem with that approach is that you then can't put the cursor behind the attachment. The cursor only goes right at the end of the line. I note that apps like Apple Notes can put the cursor behind the attachment (not at the end of the line), so I assume it is possible.