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.

#108893 Problem with link in the editor

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 alteabz on Tuesday, 21 September 2021 13:21 BST

alteabz
It's a few versions of JCE that it has a strange approach to link content.
I'm used to use an "a" tag and inside it I use break to split the text or even images.

Lately when I change the link of the tag "a" with the insert link button of the editor it removes any content inside the link that is not text, it removes the "<br>" tag or the "<img>".

I've tried to search in the configuration if it is a option I can turn off but I wasn't able to find anyting.

Can someone help me out?

Thanks

Ryan
Lately when I change the link of the tag "a" with the insert link button of the editor it removes any content inside the link that is not text, it removes the "
" tag or the "".
Are you creating the link on a selection that includes text and images, or just a single selected image?

Ryan Demmer

Lead Developer / CEO / CTO

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

alteabz
This is an example of the code

<a href="https://www.joomlacontenteditor.net/#">
    <img src="https://www.joomlacontenteditor.net/some-images.jpg">
    Text of the LInk<br>new line
</a>

Ryan
When a link is created on content that contains a linebreak, the content is split at the linebreak, and 2 identical links are created with the content on either side of the linebreak.

This has always been the expected behaviour from the Tinymce editor (on which JCE is based), but I'm not 100% sure this is now necessary or correct.

I am looking into the consequences of changing this, and you can test this out with JCE Pro 2.9.17 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.

alteabz
Great thanks,
I'll give it a try and post here if I get any strange behaviours