We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 703d8f2 + be37ca1 commit 138eddcCopy full SHA for 138eddc
apps/files_sharing/js/public.js
@@ -152,7 +152,8 @@ OCA.Sharing.PublicApp = {
152
img.attr('src', $('#downloadURL').val());
153
imgcontainer.appendTo('#imgframe');
154
} else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) {
155
- if (OC.appswebroots['files_texteditor'] !== undefined) {
+ if (OC.appswebroots['files_texteditor'] !== undefined ||
156
+ OC.appswebroots['text'] !== undefined) {
157
// the text editor handles the previewing
158
return;
159
}
0 commit comments