From 8c043dd00dec07c9b8c593a7408455bb81385535 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 22 May 2018 15:14:23 +0200 Subject: [PATCH] Remove ellipsis below public text file shares Signed-off-by: Morris Jobke --- apps/files_sharing/js/public.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 33d8da0916..1de7c6b4fc 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -132,6 +132,10 @@ OCA.Sharing.PublicApp = { img.attr('src', $('#downloadURL').val()); imgcontainer.appendTo('#imgframe'); } else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) { + if (oc_appswebroots['files_texteditor'] !== undefined) { + // the text editor handles the previewing + return; + } // Undocumented Url to public WebDAV endpoint var url = parent.location.protocol + '//' + location.host + OC.linkTo('', 'public.php/webdav'); $.ajax({