Some of our custom wiki extensions use AJAX to render article content. This content renders fine with the standard "Show Preview" button but not with the AJAX-based "Preview" tab ("side-by-side preview" in Preferences). I imagine the problem is due to order of operations.
Is there some standard code I should add to my AJAX-based extensions (say, waiting for some event?) so things render in the right order and display correctly in the side-by-side preview mode?
Thanks, DanB