From: Vincent Vanwaelscappel Date: Mon, 12 Jun 2023 16:02:04 +0000 (+0200) Subject: wait #5818 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f0cc949e8ab89a638ef0145c0bba50f90e075004;p=fluidbook-toolbox.git wait #5818 --- diff --git a/resources/linkeditor/js/linkeditor.links.js b/resources/linkeditor/js/linkeditor.links.js index 30224fc96..373f03918 100644 --- a/resources/linkeditor/js/linkeditor.links.js +++ b/resources/linkeditor/js/linkeditor.links.js @@ -14,7 +14,7 @@ var LinkeditorLinks = function (linkeditor) { this.rectSelection = null; - this.dropTypes = [4, 7, 12, 15, 16, 17, 18, 25, 30, 31]; + this.dropTypes = [4, 6, 7, 12, 15, 16, 17, 18, 25, 30, 31]; this.init(); } @@ -1059,7 +1059,7 @@ LinkeditorLinks.prototype = { var settings = []; $.each(conf, function (k, v) { let val = $(link).attr('fb-' + k); - if (k === 'alternative' || k==='to') { + if (k === 'alternative' || k === 'to') { let e = val.split('.'); let ext = e.pop().toLowerCase(); val = (['png', 'jpg', 'jpeg', 'gif', 'webp', 'avif', 'svg'].indexOf(ext) >= 0) ? 'file.jpg' : 'file.zip';