I would suggest you start with a simple boundary, as I did: "No texting or calling OM from inside our marital home, and texting or calling him in front of the kids, anywhere."
That's not healthy for the children, and hopefully you can get her to see that you're serious about that. If not, maybe enlist the help of a good family therapist, as any worth their salt would agree with the above boundaries.