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:
authorJulius Härtl <jus@bitgrid.net>2019-06-12 12:22:09 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2019-06-24 17:53:04 +0300
commitf3692eddb9d4f00f3515b1b9995d0ff44cf66712 (patch)
tree1097b8725b40306da484d051d1e6e9f55e985923
parent99aedc1f181ec1ff4d8b84c810db3e4a603fdfe9 (diff)
Let text app handle new file creation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-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;