On my site I have button group. I would like to hide the default WP content editor only when one of those buttons is selected. How could I do that?
You would need to add custom JavaScript that detects when the value of the selected value is changed and hides the editor. Sorry, I can’t give you code for this, it is not something I have ever done.
I would suggest using a different method, for example different templates, and use the ACF setting to do this.
You may be able to figure out how ACF does this by looking through the code, I’m pretty sure that ACF uses some combination of JS and CSS to hide the editor.