Node taking action to sibling node


I’m using TipTap with vue to develop my editor. I have this customized node with a button in it, clicking on it will show a popover with options for the users to select, after selection and confirmation, the content of the previous textnode to the clicked node is supposed to be changed into the user’s selection result.

What’s bugging me is that, I don’t know how to trigger the content change, because the selection is within the button node, and it seems there’s no way to invoke editor’s props or functions from there.

Is there anything I’m missing or is there’s any recommendation to tackle with that?