I use this code snippet to disable all links for the preview page:
var disableLink = function(){ return false;};
$('a').bind('click', disableLink);
This disables all links that are loaded statically. However, all tags that are loaded using ajax are still available.
How to make sure that all links, even dynamically loaded ones, are disabled in my preview.
source
share