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.