diff --git a/apps/resources-wcm/src/main/webapp/javascript/eXo/ecm/document-preview.js b/apps/resources-wcm/src/main/webapp/javascript/eXo/ecm/document-preview.js index 77cb15df5df..36cd984acf0 100644 --- a/apps/resources-wcm/src/main/webapp/javascript/eXo/ecm/document-preview.js +++ b/apps/resources-wcm/src/main/webapp/javascript/eXo/ecm/document-preview.js @@ -637,7 +637,9 @@ if(!this.isDownloadStatusActivated && !documentPreview.defaultSettings.doc.isCloudDrive) { var editorButtonsLoader = editorbuttons.initPreviewButtons(this.settings.doc.id, this.settings.doc.workspace, 'dropup'); editorButtonsLoader.done(function ($buttonsContainer) { - $(".previewBtn").append($buttonsContainer); + if ($(".previewBtn").find('.editorButtonContainer').length === 0){ + $(".previewBtn").append($buttonsContainer); + } }); }