Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/newfileplugin.js')
-rw-r--r--js/newfileplugin.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/newfileplugin.js b/js/newfileplugin.js
index 8c01b52..99d9377 100644
--- a/js/newfileplugin.js
+++ b/js/newfileplugin.js
@@ -3,6 +3,11 @@ export const newFileMenuPlugin = {
attach: function (menu) {
var fileList = menu.fileList;
+ // Make text app handle new file creation if enabled
+ if (typeof OCA.Text !== 'undefined') {
+ return;
+ }
+
// only attach to main file list, public view is not supported yet
if (fileList.id !== 'files') {
return;