Feature #90336

CKeditor autolinking: Insert https instead of http

Added by Florian Seirer over 1 year ago. Updated about 1 month ago.

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

100%

Estimated time:
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.


Files

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

Updated by Josef Glatz over 1 year ago

  • Status changed from New to Accepted
#2

Updated by Florian Seirer over 1 year 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 over 1 year ago

  • File https-autolinking.diff added
#4

Updated by Florian Seirer over 1 year ago

  • File deleted (https-autolinking.diff)
#6

Updated by Gerrit Code Review 3 months ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/69923

#7

Updated by Gerrit Code Review 3 months ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/69923

#8

Updated by Benni Mack 3 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#9

Updated by Benni Mack about 1 month ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF