From 4bc719e45c83f47391ab6eca997c787c5b05921f Mon Sep 17 00:00:00 2001 From: TeshuKatepalli Date: Wed, 27 Dec 2023 17:11:43 +0530 Subject: [PATCH] Updated the code --- scripts/aem.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/aem.js b/scripts/aem.js index 2882768..d7624cb 100644 --- a/scripts/aem.js +++ b/scripts/aem.js @@ -565,6 +565,15 @@ function decorateButtons(element) { a.classList.add('normal-text'); } } + } else { + const up = a.parentElement; + if ( + up.childNodes.length === 1 + && up.tagName === 'STRONG' + ) { + a.setAttribute('target', '_blank'); + a.classList.add('text-normal'); + } } }); }