Project

General

Profile

Feature #90336 ยป https-autolinking.diff

Florian Seirer, 2020-02-10 11:23

View differences:

typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Plugins/autolinking.js
a.appendChild(range.extractContents());
a.href = a.innerHTML = a.innerHTML.replace(/<[^>]+>/g, '');
href = a.getAttribute('href').replace(new RegExp(fillChar, 'g'), '');
href = /^(?:https?:\/\/)/ig.test(href) ? href : 'http://' + href;
href = /^(?:https?:\/\/)/ig.test(href) ? href : 'https://' + href;
a.href = html(href);
range.insertNode(a);
    (1-1/1)