Commit 8cff525a authored by Benni Mack's avatar Benni Mack Committed by Christian Kuhn
Browse files

[FEATURE] Use https by default when autolinking in RTE

When using CKEditor with autolinking plugin enabled
(e.g. simply typing in the RTE) https:// is
now used by default when a link is generated.

This change reflects the "secure-first" approach by
using https:// by default, however users can still manually
change this to http://.

More than 90% of the web now serve via HTTPS
(also see

Resolves: #90336
Releases: master
Change-Id: I38e4034915f66fd1f169bc96f27026a6427de156

Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Tested-by: core-ci's avatarcore-ci <>
Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
parent bcb50908
.. include:: ../../Includes.txt
Feature: #90336 - CKEditor Autolinking uses https by default
See :issue:`90336`
TYPO3 ships with a CKEditor plugin called "autolinking", which
automatically converts typed text within a RTE to an external URL.
When typing `` this is automatically converted to
an absolute external link, which previously used "http://" as
Nowadays, over 90% of the web is served via the https protocol
and secure connections via SSL/TLS, where it is safe to
use secure-by-default links.
When not specifically using a schema as prefix for an autolinking
URL, CKEditor now uses `https` instead of `http` as schema by default.
When typing a URL like in the RTE and the autolinking
plugin is activated, the default schema used is now `https` instead
of `http` for any new links.
However, it is - as before - fully possible to manually change a
link to use the `http://` schema instead.
.. index:: RTE, ext:rte_ckeditor
\ No newline at end of file
......@@ -114,7 +114,7 @@ CKEDITOR.plugins.add('autolinking', {
a.href = a.innerHTML;
href = a.getAttribute('href').replace(new RegExp(fillChar, 'g'), '');
href = /^(?:https?:\/\/)/ig.test(href) ? href : 'http://' + href;
href = /^(?:https?:\/\/)/ig.test(href) || /^(?:http?:\/\/)/ig.test(href) ? href : 'https://' + href;
a.href = html(href);
let textNode = document.createTextNode(endChar);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment