]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6788 @00:10
authorsoufiane <soufiane@cubedesigners.com>
Mon, 25 Mar 2024 09:45:58 +0000 (10:45 +0100)
committersoufiane <soufiane@cubedesigners.com>
Mon, 25 Mar 2024 09:45:58 +0000 (10:45 +0100)
resources/linkeditor/js/linkeditor.links.js

index 505ef5fb74c14d14c00d8ac4e8de97408e7be1e5..49332be2e1eef0267f1dfb973e61c3d9c69decda 100644 (file)
@@ -1557,6 +1557,7 @@ LinkeditorLinks.prototype = {
 
     setPreview: function(p) {
         const links = this.getLinksOfPage(1)
+
         $.ajax({
             url:  '/fluidbook-publication/' + FLUIDBOOK_DATA.id + '/generatefont',
             type: 'post',
@@ -1607,10 +1608,6 @@ LinkeditorLinks.prototype = {
                     'background-size': '100% 100%',
                     'background-position': '0 0',
                 })
-            } else if(linkData.type === '35') {
-                if(FONT_SIZE[linkData.uid] !== undefined) {
-                    $("[data-id-preview=" + linkData.uid + "]").text(linkData.to).attr('style', FONT_SIZE[linkData.uid])
-                }
             }
         }
     },