Change scope of condition for using blankshield 4cbe598a

This commit is contained in:
Kijin Sung 2022-08-01 00:46:57 +09:00
parent 4cbe598a50
commit a0f895a02f

View file

@ -338,7 +338,6 @@ jQuery(function($) {
}
return true;
})();
if (noopenerRequired) {
$('a[target]').each(function() {
var $this = $(this);
var href = String($this.attr('href')).trim();
@ -367,11 +366,12 @@ jQuery(function($) {
if (!rel.match(/\bnoopener\b/)) {
$this.attr('rel', $.trim(rel + ' noopener'));
}
if (noopenerRequired) {
event.preventDefault();
blankshield.open(href);
}
});
}
});
/* Editor preview replacement */
$(".editable_preview").addClass("rhymix_content xe_content").attr("tabindex", 0);