Edit context error when trying to edit text in a component

Hi there,

I created a small plugin to change the text of a selection of text nodes (handy for tables) at once.
This does not work when the text is in a component AND the component is used somewhere. ‘Plugin made a change outside the current edit context’ is the error. It is fine as long as the component does not have an ‘instance’/‘copy’ (?) of it on the artboard.

So how do I circumvent that?

I could break up the component and recreate it, but then I need to find all occurences of this component in the document and replace them.

The XD API authors (hi @peterflynn) appear to always err on the side of caution when it comes to letting plugins modify non-standard things like components or repeat group contents. Frustrating at times like this.