]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5818
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 12 Jun 2023 16:02:04 +0000 (18:02 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 12 Jun 2023 16:02:04 +0000 (18:02 +0200)
resources/linkeditor/js/linkeditor.links.js

index 30224fc96eb51d65464ad03a66fb4d42779ef90d..373f0391831235ebeea66c8239849121144ba3a6 100644 (file)
@@ -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';