I posted this on WP but didn’t get a response, not sure if it’s better here or makes a difference.
https://wordpress.org/support/topic/pb-is-killing-some-javascript?replies=2
When I add a NextGEN/NextCellent Gallery in the Visual Editor it’s not working the same as the WP visual editor, it seems to be stripping out some code, my guess is js.
Comparing these two pages:
Default WP visual editor: http://cb.profoliolive.com/lifestyle/
PB Visual Editor: http://cb.profoliolive.com/siteorigin-test/
If I manual add back in the custom body class ( gallery_full_width ) directly on the page it looks a little closer but still not there.
These 2 gallery plugins are very popular so I hope you are able to look into this issue.
Thanks!