mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #612 apply target=_blank to links added after initial page load
This commit is contained in:
parent
da6a8da40a
commit
c8975c0cf9
1 changed files with 7 additions and 0 deletions
|
|
@ -92,4 +92,11 @@
|
|||
});
|
||||
|
||||
xe.registerPlugin(new AutoLink());
|
||||
|
||||
$(document).on('click', '.xe_content a', function() {
|
||||
if (!$(this).attr("target")) {
|
||||
$(this).attr("target", "_blank");
|
||||
}
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue