Restore basic editing on mobile

This commit is contained in:
Nelson DINIS GONCALVES 2022-05-10 13:02:51 +02:00
parent 4290b7a78e
commit 78bc08a1a9
2 changed files with 9 additions and 2 deletions

View file

@ -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
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

View file

@ -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.