Feature #90336

CKeditor autolinking: Insert https instead of http

Added by Florian Seirer 19 days ago. Updated 15 days ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
RTE (rtehtmlarea + ckeditor)
Target version:
-
Start date:
2020-02-06
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

If I type "www.test.com" into the editor, a link is created automatically:

<a href="http://www.test.com">www.test.com</a>

That's fine, but it's 2020 and https is more or less the standard protocol.
CKeditor should honor that by writing https in the href attribute.

https-autolinking.diff View (847 Bytes) Florian Seirer, 2020-02-10 11:23

History

#1 Updated by Josef Glatz 15 days ago

  • Status changed from New to Accepted

#2 Updated by Florian Seirer 15 days ago

See line 111 in /typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Plugins/autolinking.js:

href = /^(?:https?:\/\/)/ig.test(href) ? href : 'http://' + href;

#3 Updated by Florian Seirer 15 days ago

  • File https-autolinking.diff added

#4 Updated by Florian Seirer 15 days ago

  • File deleted (https-autolinking.diff)

Also available in: Atom PDF