You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#102144 Auto-add target when external link - quick-link feature

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Monday, 14 September 2020 19:39 BST

GFCOM
Hi Ryan,

Thanks and congrats for the awesome work of the new JCE version 2.8 !

It looks awesome and full of new features ! :)

I would like to suggest a thing with the quick-link feature : auto-add blank target and rel attributes when it's an external link.

Ryan
Please try JCE Pro 2.8.2 Beta 3 - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ant default attributes (including target) set in Editor Profiles -> Editor Parameters -> Link will be applied to the Quick Link. If the link is external and has a target of _blank, then rel="noopener" is automatically applied.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

GFCOM
Hi Ryan

Thank you, this seems to work fine.

However, target of _blank is also added when internal link is inserted (e.g. : index.php?option=com_content&view=article&id=33&Itemid=103 or http://www.samewebsite.com/custom-url)

Thanks !

Ryan
However, target of _blank is also added when internal link is inserted (e.g. : index.php?option=com_content&view=article&id=33&Itemid=103 or http://www.samewebsite.com/custom-url)


Yes, as it is set as a default parameter.

I understand why you might want to add a _blank target for all external links, but I can;'t make this a default, as some users might not want it, so the next best thing is to use the Target parameter. I don't want to add a new option just for external links.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

GFCOM
Hi Ryan,

I understand.

Thank you !

rian
Hello,
Editor Profiles -> Editor Parameters -> Link is set to "not set" and the quick link opens in a new page. why?

Ryan
Please try JCE Pro 2.8.18 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.