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.

#109853 Edit link with tag inside (Font Awesome)

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 GFCOM on Monday, 10 January 2022 12:54 GMT

GFCOM
Hi Ryan, There is an issue with the "Insert link" function when the link contains a Font Awesome HTML tag : when you edit a link, the text is duplicated inside the <i> tag. E.G. If you edit this kind of HTML structure

<p><a href="https://www.joomlacontenteditor.net/test.html"><i class="fas fa-address-book"></i> This is a link</a></p>
After edit the code becomes :

<p><a href="https://www.joomlacontenteditor.net/test.html"><i class="fas fa-address-book">  This is a link</i> This is a link</a></p>
You don't even need to make any changes, just click on the link, click on "Insert link" and then click on "Update" I've tested with JCE 2.9.18 and on your demo website. Best regards

Ryan
Please try JCE Pro 2.9.19 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.

GFCOM
Hi Ryan, An unnecessary nbsp; is added now with 2.9.19 Beta.3 after the </i> tag Before :

<p><a href="https://www.joomlacontenteditor.net/test.html"><i class="fas fa-address-book"></i> This is a link</a></p>
After :

<p><a href="https://www.joomlacontenteditor.net/test.html"><i class="fas fa-address-book"></i>  This is a link</a></p>

Ryan
The non-breaking space is a replacement for the space character between the icon and the text. It perfoms the same role, and is more correct.

Ryan Demmer

Lead Developer / CEO / CTO

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

GFCOM
Hello Ryan,

Yes, but if there is already a space, it appear like a second space.

Maybe it's beter to remove the existing space to replace with the non-breaking space ?

Ryan
Please try JCE Pro 2.9.19 Beta 7 - 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.

GFCOM
Great ! Works like a charm 😃