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
path: root/js
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2019-06-24 17:52:50 +0300
committerGitHub <noreply@github.com>2019-06-24 17:52:50 +0300
commit7812327039bc0b62f9bd95ea2982742dfc624a1b (patch)
treeeca43f5a83408f4c5dc44a850c4e286bc4a8dad1 /js
parent9e365ea3788ee6d329ea0deec9086ebce4b65c88 (diff)
parentac711bb6f507d4fe385008b5fa299700be7ce3bd (diff)
Let text app handle new file creation (#163)
Let text app handle new file creation
Diffstat (limited to '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;