Make link added to image in Rich text via CMS open in the same window

Hi, when I add a link to an external url to an image in a rich text field via the CMS, that link opens in a separate window. Is there a way to amend this so that the link opens in the same window?


Here is my public share link: LINK
(how to access public share link)

Hi @cyberdave. You mentioned this may be possible with javascript. Would you be able to expand please?