Rewrite the source of the formula at the selection: what an equation editor's "apply" does. Attributes are replaced wholesale rather than re-created, so the node keeps its identity and the selection survives.
Rewrite the source of the formula at the selection: what an equation editor's "apply" does. Attributes are replaced wholesale rather than re-created, so the node keeps its identity and the selection survives.