external links are not opened on click

This commit is contained in:
zadam
2020-09-27 23:02:21 +02:00
parent 8f68b4f298
commit fbb36d652f
3 changed files with 8 additions and 2 deletions

View File

@@ -85,7 +85,9 @@ function goToLink(e) {
}
}
else {
if (e.which === 1) {
if ((e.which === 1 && e.ctrlKey) || e.which === 2
|| $link.hasClass("ck-link-actions__preview") // within edit link dialog single click suffices
) {
const address = $link.attr('href');
if (address && address.startsWith('http')) {