From 78bc08a1a92a38fda8c18dc3485146dda2f165b1 Mon Sep 17 00:00:00 2001 From: Nelson DINIS GONCALVES Date: Tue, 10 May 2022 13:02:51 +0200 Subject: [PATCH] Restore basic editing on mobile --- Dockerfile | 9 ++++++++- README.md | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c944b4..a4e378a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,4 +47,11 @@ ARG oo_root #server COPY --from=build-stage /build/converter ${oo_root}/server/FileConverter/converter -COPY --from=build-stage /build/docservice ${oo_root}/server/DocService/docservice \ No newline at end of file +COPY --from=build-stage /build/docservice ${oo_root}/server/DocService/docservice + +# Restore basic editing on mobile (no editing menu/features). +RUN sed -si \ + 's/isSupportEditFeature=function(){return!1}/isSupportEditFeature=function(){return 1}/g' \ + ${oo_root}/web-apps/apps/documenteditor/mobile/dist/js/app.js \ + ${oo_root}/web-apps/apps/presentationeditor/mobile/dist/js/app.js \ + ${oo_root}/web-apps/apps/spreadsheeteditor/mobile/dist/js/app.js diff --git a/README.md b/README.md index d953739..ae5686d 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ This [Dockerfile](./Dockerfile) and patches compile a version of OnlyOffice Docs server with mobile editing enabled in the Nextcloud apps for an unlimited amount of concurrent users. -The patches provided in this repository also try to provide basic functionality from an old release. +The patches provided in this repository only restores basic editing on mobile. It can be integrated into e.g. Nextcloud or ownCloud like the official images.