From: Vincent Vanwaelscappel Date: Wed, 24 Jan 2024 16:29:41 +0000 (+0100) Subject: wait #6681 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=68c586023cedb53bdda8f25c9ec16ae6b6d18166;p=fluidbook-toolbox.git wait #6681 @1.5 --- diff --git a/resources/linkeditor/js/linkeditor.clipboard.js b/resources/linkeditor/js/linkeditor.clipboard.js index d7ba4e4b2..5de9600e8 100644 --- a/resources/linkeditor/js/linkeditor.clipboard.js +++ b/resources/linkeditor/js/linkeditor.clipboard.js @@ -14,9 +14,7 @@ LinkeditorClipboard.prototype = { return; } $(document).on('touchstart click', function () { - if (document.hasFocus()) { - $this.checkBlocked(); - } + $this.checkBlocked(); return true; }); @@ -26,17 +24,16 @@ LinkeditorClipboard.prototype = { if (!this.blocked) { return; } - let $this = this; this.get(function (c) { }, true); }, enabled: function () { - return !this.blocked && this.support(); + return this.support(); }, support: function () { - return this.linkeditor.utils.isWindows() && !this.linkeditor.utils.isFirefox(); + return !this.linkeditor.utils.isFirefox(); }, empty: function () { @@ -53,7 +50,7 @@ LinkeditorClipboard.prototype = { .then(blob => { blob.text() .then(text => { - if (text.indexOf('') === 0) { + if (text.indexOf('') >= 0) { $this.content = text; callback($this.content); } diff --git a/resources/linkeditor/js/linkeditor.links.js b/resources/linkeditor/js/linkeditor.links.js index 884c5c7ab..40ace7a97 100644 --- a/resources/linkeditor/js/linkeditor.links.js +++ b/resources/linkeditor/js/linkeditor.links.js @@ -772,7 +772,6 @@ LinkeditorLinks.prototype = { }, selectLink: function (l) { - console.log($(l).find('.corners')); if ($(l).find('.corners').length === 0) { $(l).append('
') }