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.

#110760 Unable to add new line after document links

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 jcalvert on Saturday, 09 April 2022 00:46 BST

jcalvert
I am using the current version of JCE on Joomla 3.10.6. I've used JCE for many years.

I have a client who has flushed out a bug while using the editor.

The article only contains several lines of links to PDF documents. If the cursor is placed at the end of any line, and enter is pressed to create a new line, the current link is extended to the new line, as shown in the screenshot here:

Attachments

Ryan
If the cursor is placed at the end of any line, and enter is pressed to create a new line, the current link is extended to the new line


What do you have set for Container Element & Enter Key option in the JCE Global Configuration?

Ryan Demmer

Lead Developer / CEO / CTO

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

jcalvert
Hi Ryan ~ I've got it set to: None : Linebreak

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

Click at the end of the link, then press the Right Arrow key. The link will no longer be highlighted blue and the Link button will no longer be active.
Press Enter to create a new line.

Ryan Demmer

Lead Developer / CEO / CTO

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

jcalvert
Hi Ryan, I installed your beta release, JCE Pro 2.9.23 Beta. On the last document link in the article, I clicked at the end of the link, then pressed the right arrow key... the link remains highlighted blue. Pressing Enter creates a new line above the existing line, but there is no cursor anywhere. If I place the mouse pointer (cursor) at the beginning of that new blank line, and enter characters there, they are highlighted blue and have the same link as the below line. Keep in mind that there are four document links in the article, and that's it... nothing else. Here is the code of the article:

<a href="https://www.joomlacontenteditor.net/my_media/1_-_Introduction.pdf" target="_blank" class="wf_file">
<img class="wf_file_icon" src="https://www.joomlacontenteditor.net/media/jce/icons/pdf.png" style="border: 0px; vertical-align: middle; max-width: inherit;" alt="pdf" />
<span class="wf_file_text">Introduction</span>
<span class="wf_file_size" style="margin-left: 5px;">108.74 KB</span></a>
<br />
<a href="https://www.joomlacontenteditor.net/my_media/2_-_Short_Term_Vacation_Rental_STVR_Requirements.docx.pdf" target="_blank" class="wf_file">
<img class="wf_file_icon" src="https://www.joomlacontenteditor.net/media/jce/icons/pdf.png" style="border: 0px; vertical-align: middle; max-width: inherit;" alt="pdf" />
<span class="wf_file_text">Short-Term Vacation Rental (STVR) Requirements</span>
<span class="wf_file_size" style="margin-left: 5px;">113.54 KB</span></a>
<br />
<a href="https://www.joomlacontenteditor.net/my_media/3_-_Visitor_Registration_and_Parking_Permits.pdf" target="_blank" class="wf_file">
<img class="wf_file_icon" src="https://www.joomlacontenteditor.net/media/jce/icons/pdf.png" style="border: 0px; vertical-align: middle; max-width: inherit;" alt="pdf" />
<span class="wf_file_text">Visitor Registration and Parking Permits.pdf</span>
<span class="wf_file_size" style="margin-left: 5px;">111.49 KB</span></a>
<br />
<a href="https://www.joomlacontenteditor.net/my_media/4_-_Hawai%CA%BBi_COVID_Compliance.pdf" target="_blank" class="wf_file">
<img class="wf_file_icon" src="https://www.joomlacontenteditor.net/media/jce/icons/pdf.png" style="border: 0px; vertical-align: middle; max-width: inherit;" alt="pdf" />
<span class="wf_file_text">Hawaiʻi COVID Compliance</span>
<span class="wf_file_size" style="margin-left: 5px;">176.67 KB</span></a>
Notice also that when the Left, Right, Up, Down arrows on the keyboard are pressed, the results aren't what's expected. thanks, JC

Ryan
This has been a long running and perhaps until now unsolveable issue, complicated by the fact that the None:Linebreak setting creates additional issues with some editor behaviour.

I think I have found a suitable workaround for this, while hopefully also addressing some for the None:Linebreak issues, but it does need testing.

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

Clear your browser cache after install.

You should now be able to move the cursor out of a link by using the Right Arrow, or by clicking at the outside right edge of the link.

Ryan Demmer

Lead Developer / CEO / CTO

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

jcalvert
that worked, thanks!