I am using jQuery to populate content in an article. Several items in the dynamically added content include links that should be opened using the JCE Mediabox plugin. The markup of the links matches a popup link added via the JCE editor plugin.
<a href="https://www.iframeUrlHere.com" type="iframe" class="jcepopup" data-mediabox="1">View popup</a>
However, the dynamic links only open the link in the full window, not in a popup. My guess is, there is a script that searches the DOM on page load for elements with the class "jcepopup" to add listeners for each item. My content, loaded after the initial page load, is not included with that search.
Can I manually call for the mediabox script to be re-run after the dynamic content is loaded, or is there another way to initiate the popup for the dynamic content links?
J! 3.9.22, JCE 2.9.1
Thanks,
Joel