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.

#99905 Hyperlinks in JCE (auto linking) question

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 urzh234 on Friday, 10 May 2019 14:16 BST

urzh234
Hi Ryan,
Similar to this post: https://www.joomlacontenteditor.net/support/forum/97897

Is this still valid for the latest version of JCE Pro? My links still render when I paste them in the editor even if I remove the clippoard option. I don't want this because I'm using OSembed which auto embeds the links, but they can't be hyperlinked (clickable).

Thanks

Ryan
You can disable autolinking of emails and urls in Editor Profiles -> Plugin Parameters -> Link, by setting the Autolink Emails and Autolink URLs options to No.

https://cdn.joomlacontenteditor.net/tmp/99905-hyperlinks-in-jce-auto-linking-question.jpg

Ryan Demmer

Lead Developer / CEO / CTO

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

urzh234
Hi Ryan, that's what i thought. I have both disabled now, but URL's still auto link when I paste them into the editor. In my screenshot below, I copied/pasted a URL from youtube.

Attachments

Ryan
This is because, in Chrome, a link copied from the URL field is made into a hyperlink by the browser, eg:

<a href="https://www.youtube.com/watch?v=XC8-Qszcy8M">https://www.youtube.com/watch?v=XC8-Qszcy8M</a>;
instead of just

https://www.youtube.com/watch?v=XC8-Qszcy8M
So now the question is whether that should be unlinked when pasted, which is tricky, as there is no way of knowing whether the user's intention was to paste a full link, or just a url.

Ryan Demmer

Lead Developer / CEO / CTO

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

urzh234
Ah, you're right. I see the difference now. Well, I want to force this behavior for all links...and instead...if the user wants a link...than can do it through the URL LINK button in the editor. Make sense?

Ryan
In Editor Profiles -> Plugin Parameters -> Clipboard, add a to the Remove Tags field, eg:

https://cdn.joomlacontenteditor.net/tmp/99905-hyperlinks-in-jce-auto-linking-question-2.jpg

Ryan Demmer

Lead Developer / CEO / CTO

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

urzh234
perfect, thanks a lot Ryan.