ajaxjoomlajoomla-articlejoomla-content-editor

How to add JCE MediaBox popup to ajax content in Joomla articles


I am displaying articles in ajax tabs and trying to add the JCE MediaBox popup to content in the article loaded by the ajax request.

Because the DOM is updated by ajax, and JCE MediaBox must be adding the event onload of the page, I am not able to attach the JCE MediaBox popup.


Solution

  • After loading the ajax content, initialise the JCE MediaBox popup with this line of code:

    window.jcepopup.create();