Text-only editing of arbitrary dom

Hi,

i’m thinking of making a translation tool that would allow one to edit only the text nodes of a DOM. However i’m missing the right initial direction to follow using prosemirror. Any idea ?