diff --git a/docs/frontend-integration.md b/docs/frontend-integration.md index 1c92f32b7a..7c031663c8 100644 --- a/docs/frontend-integration.md +++ b/docs/frontend-integration.md @@ -100,6 +100,10 @@ The following handlers are currently supported: - insertGraphic: will be called when an image from the Nextcloud storage should be inserted - Arguments - insertFileFromPath(path): Callback to trigger the actual inserting of the graphic from an absolute file path +- insertFile: will be called when a file (e.g., multimedia) from the Nextcloud storage should be inserted (generalized insertGraphic) + - Arguments + - mimeTypeFilter: array of MIME types (strings) to filter in the UI + - insertFileFromPath(path): Callback to trigger the actual inserting of the file from an absolute file path In addition, the following handlers can be used to overwrite the handling of file actions that are rendered in the Nextcloud header bar: - actionDetails diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php index d93f16c91d..be8e328cb4 100644 --- a/lib/Controller/WopiController.php +++ b/lib/Controller/WopiController.php @@ -153,6 +153,7 @@ public function checkFileInfo($fileId, $access_token) { 'SupportsRename' => !$isVersion && !$wopi->isRemoteToken(), 'UserCanRename' => !$isPublic && !$isVersion && !$wopi->isRemoteToken(), 'EnableInsertRemoteImage' => !$isPublic, + 'EnableInsertRemoteFile' => !$isPublic, 'EnableShare' => $file->isShareable() && !$isVersion && !$isPublic, 'HideUserList' => '', 'EnableOwnerTermination' => $wopi->getCanwrite() && !$isPublic, diff --git a/src/components/Modal/ZoteroHint.vue b/src/components/Modal/ZoteroHint.vue index dec1f09a50..344e077e75 100644 --- a/src/components/Modal/ZoteroHint.vue +++ b/src/components/Modal/ZoteroHint.vue @@ -4,7 +4,7 @@ -->