diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 41f151f15..f6133e032 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -105,7 +105,7 @@ customization: { logo: { image: url, - imageEmbedded: url, + imageEmbedded: url, // deprecated, use image instead url: http://... }, customer: { @@ -918,8 +918,8 @@ if ( (typeof(config.editorConfig.customization) == 'object') && config.editorConfig.customization.loaderLogo) { if (config.editorConfig.customization.loaderLogo !== '') params += "&logo=" + encodeURIComponent(config.editorConfig.customization.loaderLogo); } else if ( (typeof(config.editorConfig.customization) == 'object') && config.editorConfig.customization.logo) { - if (config.type=='embedded' && config.editorConfig.customization.logo.imageEmbedded) - params += "&headerlogo=" + encodeURIComponent(config.editorConfig.customization.logo.imageEmbedded); + if (config.type=='embedded' && (config.editorConfig.customization.logo.image || config.editorConfig.customization.logo.imageEmbedded)) + params += "&headerlogo=" + encodeURIComponent(config.editorConfig.customization.logo.image || config.editorConfig.customization.logo.imageEmbedded); else if (config.type!='embedded' && config.editorConfig.customization.logo.image) params += "&headerlogo=" + encodeURIComponent(config.editorConfig.customization.logo.image); } diff --git a/apps/common/embed/resources/img/logo.svg b/apps/common/embed/resources/img/logo.svg index 0d3cb18e7..4de1b67a5 100644 --- a/apps/common/embed/resources/img/logo.svg +++ b/apps/common/embed/resources/img/logo.svg @@ -1 +1,4 @@ - \ No newline at end of file + + + + \ No newline at end of file diff --git a/apps/common/embed/resources/less/common.less b/apps/common/embed/resources/less/common.less index 7cb786448..1f0d4e378 100644 --- a/apps/common/embed/resources/less/common.less +++ b/apps/common/embed/resources/less/common.less @@ -238,7 +238,7 @@ .brand-logo { display: block; width: 100px; - height: 24px; + height: 20px; background: data-uri('../../../../common/embed/resources/img/logo.svg') no-repeat; } diff --git a/apps/documenteditor/embed/index.html b/apps/documenteditor/embed/index.html index 32a421a62..7355d87dd 100644 --- a/apps/documenteditor/embed/index.html +++ b/apps/documenteditor/embed/index.html @@ -43,14 +43,14 @@ .loadmask > .brendpanel .loading-logo { max-width: 200px; - height: 24px; + height: 20px; margin-left: 10px; text-align: center; } .loadmask > .brendpanel .loading-logo > img { display: inline-block; - max-width: 124px; + max-width: 100px; max-height: 20px; opacity: 0; } diff --git a/apps/documenteditor/embed/index.html.deploy b/apps/documenteditor/embed/index.html.deploy index d06ee816a..527732ad9 100644 --- a/apps/documenteditor/embed/index.html.deploy +++ b/apps/documenteditor/embed/index.html.deploy @@ -41,14 +41,14 @@ .loadmask > .brendpanel .loading-logo { max-width: 200px; - height: 24px; + height: 20px; margin-left: 10px; text-align: center; } .loadmask > .brendpanel .loading-logo > img { display: inline-block; - max-width: 124px; + max-width: 100px; max-height: 20px; opacity: 0; } diff --git a/apps/documenteditor/embed/js/ApplicationController.js b/apps/documenteditor/embed/js/ApplicationController.js index f3b577b53..b2a3150fc 100644 --- a/apps/documenteditor/embed/js/ApplicationController.js +++ b/apps/documenteditor/embed/js/ApplicationController.js @@ -599,9 +599,11 @@ DE.ApplicationController = new(function(){ config.customization && config.customization.logo ) { var logo = $('#header-logo'); - if (config.customization.logo.imageEmbedded) { - logo.html(''); + if (config.customization.logo.image || config.customization.logo.imageEmbedded) { + logo.html(''); logo.css({'background-image': 'none', width: 'auto', height: 'auto'}); + + config.customization.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead."); } if (config.customization.logo.url) { diff --git a/apps/presentationeditor/embed/index.html b/apps/presentationeditor/embed/index.html index d94d7b765..c16fd838f 100644 --- a/apps/presentationeditor/embed/index.html +++ b/apps/presentationeditor/embed/index.html @@ -43,14 +43,14 @@ .loadmask > .brendpanel .loading-logo { max-width: 200px; - height: 24px; + height: 20px; margin-left: 10px; text-align: center; } .loadmask > .brendpanel .loading-logo > img { display: inline-block; - max-width: 124px; + max-width: 100px; max-height: 20px; opacity: 0; } diff --git a/apps/presentationeditor/embed/index.html.deploy b/apps/presentationeditor/embed/index.html.deploy index 6bfce4d25..540856471 100644 --- a/apps/presentationeditor/embed/index.html.deploy +++ b/apps/presentationeditor/embed/index.html.deploy @@ -41,14 +41,14 @@ .loadmask > .brendpanel .loading-logo { max-width: 200px; - height: 24px; + height: 20px; margin-left: 10px; text-align: center; } .loadmask > .brendpanel .loading-logo > img { display: inline-block; - max-width: 124px; + max-width: 100px; max-height: 20px; opacity: 0; } diff --git a/apps/presentationeditor/embed/js/ApplicationController.js b/apps/presentationeditor/embed/js/ApplicationController.js index 8317bc3f2..766dba5fd 100644 --- a/apps/presentationeditor/embed/js/ApplicationController.js +++ b/apps/presentationeditor/embed/js/ApplicationController.js @@ -457,9 +457,11 @@ PE.ApplicationController = new(function(){ config.customization && config.customization.logo ) { var logo = $('#header-logo'); - if (config.customization.logo.imageEmbedded) { - logo.html(''); + if (config.customization.logo.image || config.customization.logo.imageEmbedded) { + logo.html(''); logo.css({'background-image': 'none', width: 'auto', height: 'auto'}); + + config.customization.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead."); } if (config.customization.logo.url) { diff --git a/apps/spreadsheeteditor/embed/index.html b/apps/spreadsheeteditor/embed/index.html index 12f2e0487..2e0f4617c 100644 --- a/apps/spreadsheeteditor/embed/index.html +++ b/apps/spreadsheeteditor/embed/index.html @@ -43,14 +43,14 @@ .loadmask > .brendpanel .loading-logo { max-width: 200px; - height: 24px; + height: 20px; margin-left: 10px; text-align: center; } .loadmask > .brendpanel .loading-logo > img { display: inline-block; - max-width: 124px; + max-width: 100px; max-height: 20px; opacity: 0; } diff --git a/apps/spreadsheeteditor/embed/index.html.deploy b/apps/spreadsheeteditor/embed/index.html.deploy index 59dd5d113..5bced543e 100644 --- a/apps/spreadsheeteditor/embed/index.html.deploy +++ b/apps/spreadsheeteditor/embed/index.html.deploy @@ -40,14 +40,14 @@ .loadmask > .brendpanel .loading-logo { max-width: 200px; - height: 24px; + height: 20px; margin-left: 10px; text-align: center; } .loadmask > .brendpanel .loading-logo > img { display: inline-block; - max-width: 124px; + max-width: 100px; max-height: 20px; opacity: 0; } diff --git a/apps/spreadsheeteditor/embed/js/ApplicationController.js b/apps/spreadsheeteditor/embed/js/ApplicationController.js index 0bfa8b6d6..68d8687a2 100644 --- a/apps/spreadsheeteditor/embed/js/ApplicationController.js +++ b/apps/spreadsheeteditor/embed/js/ApplicationController.js @@ -353,9 +353,11 @@ SSE.ApplicationController = new(function(){ config.customization && config.customization.logo ) { var logo = $('#header-logo'); - if (config.customization.logo.imageEmbedded) { - logo.html(''); + if (config.customization.logo.image || config.customization.logo.imageEmbedded) { + logo.html(''); logo.css({'background-image': 'none', width: 'auto', height: 'auto'}); + + config.customization.logo.imageEmbedded && console.log("Obsolete: The 'imageEmbedded' parameter of the 'customization.logo' section is deprecated. Please use 'image' parameter instead."); } if (config.customization.logo.url) {