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

515 Views Asked by At

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.

1

There are 1 best solutions below

0
On BEST ANSWER

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

window.jcepopup.create();