diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2019-06-24 18:24:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-24 18:24:55 +0300 |
commit | 6846d32aea124700a8884775e8ce6bc284f16e6a (patch) | |
tree | 1097b8725b40306da484d051d1e6e9f55e985923 | |
parent | 99aedc1f181ec1ff4d8b84c810db3e4a603fdfe9 (diff) | |
parent | f3692eddb9d4f00f3515b1b9995d0ff44cf66712 (diff) |
[stable16] Let text app handle new file creation (#164)v16.0.2RC1v16.0.2
[stable16] Let text app handle new file creation
-rw-r--r-- | js/newfileplugin.js | 5 |
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; |