Skip to content

feat(settings): option to keep opening MS Office files when another office app is enabled - #6087

Open
acbelle59 wants to merge 1 commit into
nextcloud:mainfrom
acbelle59:admin-option-msoffice-with-other-office-apps
Open

acbelle59 wants to merge 1 commit into
nextcloud:mainfrom
acbelle59:admin-option-msoffice-with-other-office-apps

Conversation

@acbelle59

Copy link
Copy Markdown

Summary

Since #2301, when the onlyoffice (or officeonline) app is enabled, richdocuments stops handling Microsoft Office formats (docx, xlsx, pptx…) and only keeps OpenDocument formats, so that each app handles its own family of formats. That is a sensible default, but some admins want the opposite: keep opening every format with Collabora by default, and let users pick the other app from the file actions menu ("Open in ONLYOFFICE"), per document — see #3456 (and the earlier #928).

This adds an opt-in admin setting, msoffice_with_other_office_apps (default off, so nothing changes for existing installations). When enabled, hasOtherOOXMLApps() returns false and the MS Office mimetypes stay in the default list. It is exposed exactly like disable_certificate_verification: settings controller, admin initial state, capabilities, a checkbox in the admin settings (Advanced settings, under "Use OOXML by default"), and a paragraph in docs/app_settings.md.

How it was tested

Nextcloud 34.0.3, richdocuments 11.1.1, onlyoffice 10.1.2 (with the OnlyOffice connector's default formats released so that it does not claim the simple click):

  • option enabled: a simple click opens Collabora; the file actions menu offers "Open in ONLYOFFICE"; the same document was edited with both editors (and from an iPhone with Collabora), all changes saved;
  • option disabled: current behaviour unchanged — ONLYOFFICE takes the click, Collabora is not offered.

Resolves #3456.

…ffice app is enabled

Since nextcloud#2301, when the onlyoffice or officeonline app is enabled, richdocuments
stops handling Microsoft Office formats (docx, xlsx, pptx…) and only keeps
OpenDocument formats, so that each app handles its own family of formats.
Some admins want the opposite: keep opening every format with Collabora by
default, and let users pick the other app from the file actions menu
("Open in ONLYOFFICE"), per document. See nextcloud#3456 (and the earlier nextcloud#928).

Add an opt-in admin setting, msoffice_with_other_office_apps (default off,
so nothing changes for existing installations). When enabled,
hasOtherOOXMLApps() returns false and MS Office mimetypes stay in the
default list. Exposed like disable_certificate_verification: settings
controller, admin initial state, capabilities, a checkbox in the admin
settings (Advanced settings) and a paragraph in docs/app_settings.md.

Tested on Nextcloud 34.0.3 with richdocuments 11.1.1 and onlyoffice 10.1.2
(with the OnlyOffice connector's default formats released): option enabled,
a click opens Collabora and "Open in ONLYOFFICE" is offered in the menu;
option disabled, the current behaviour is unchanged (ONLYOFFICE takes the
click, Collabora is not offered).

Resolves: nextcloud#3456

Signed-off-by: acbelle59 <acbelle@laposte.net>
@elzody

elzody commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

At first glance, perhaps instead of introducing a new configuration option, we could just default to adding an option in the files action menu to "Open with Nextcloud Office (Collabora)" when another office app that handles OOXML types is enabled. That way it would just be there for those who want to use it.

@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to open files with Collabora if onlyoffice app is installed

2 participants