Well, I manged to make some headway. I wrapped your binding/listening events in a function called init, and can now call the event on the fly.
However, because the plugins wrapped in an anonymous function, there’s no way to call it externally. At this point, I think the course of action I’m going to take, at least for myself, is to add another listener that will fire the init function when my content is reloaded via the ajax call.
I can post the modified code on pastebin if you want.
Okay, so I got it working the way I wanted. Here’s the modded code here. https://pastebin.com/GC8KNgmh
As I said above, I wrapped your binding functions in a wrapper. I also added an initial call within the dom-ready wrapper, to set things up the first time. I also added my own listener, which re-fires the init. After that, I can easily fire it externally, by calling $( “.editor_wrapper” ).change(); which triggers the on-change function.
Hit send too soon. While I added the listener to my own element, you could set it up to target one of acf’s elements.
However, the other issue, where the button text isn’t changing still persists.