OnlyOffice Document Server 7.2.2 (Docker, Windows, Community Edition) – Always View-Only Mode Despite Correct Config

Hello,

I am trying to use OnlyOffice Document Server 7.2.2 (Community Edition, Docker) on Windows to edit DOCX files from Obsidian (Electron app) via a local integration. No matter what I do, the editor always opens in view-only mode (cannot type), even though all config and permissions are correct.

Setup Details:

OS: Windows 11

OnlyOffice Document Server: 7.2.2 (Community Edition, Docker)

Docker run command:

(I use \ for line continuation in bash, or all on one line.)

Static file server:

Running in the folder:
C:\Users\pixer\Dropbox\remotely-save\Plugin development.obsidian\plugins\OnlyOffice
Command:
Accessible at:
http://192.168.1.228:8081/Start.docx
I can download Start.docx in my browser from this URL.
Callback/upload server:

Node.js Express server running on port 8082.
Receives POST requests from OnlyOffice when saving.
Obsidian plugin config:

Static File Server Base URL: http://192.168.1.228:8081
Start.docx Path: Start.docx
Callback URL: http://192.168.1.228:8082/callback
OnlyOffice config sent to the editor:

What works:

I can download Start.docx from the static server in my browser.
The callback server receives POST requests from OnlyOffice.
No errors or license/demo banners in the OnlyOffice UI.
No errors in the browser console or OnlyOffice Docker logs (just normal startup warnings).
I have tried with multiple DOCX files, different browsers, and the standalone HTML test.

What doesn’t work:

The OnlyOffice editor always opens in view-only mode (cannot type).
No errors or edit rights requests are reported in the console.
The config always has “edit”: true.
What I have tried:

Restarted all servers and Docker containers.
Used both HTTP and HTTPS for the static server.
Tried different DOCX files (new, blank, etc.).
Checked file permissions (not read-only).
Verified all environment variables are set in the container.
Tried both Obsidian plugin and standalone HTML test.
Checked for license/demo banners (none).
Checked OnlyOffice Docker logs after every attempt (no relevant errors).

Question:

Is there any known issue or hidden requirement in OnlyOffice Document Server 7.2.2 (Community Edition, Docker) that would cause the editor to always open in view-only mode, even with correct config and permissions?
Is there any way to force edit mode in this setup?
Are there any additional debug steps or config options I should try?

Thank you for any help or insight!

Hello @Pixero

Please note that version 7.2.2 is outdated and no longer supported. I recommend installing latest version and checking out the situation.

Hi!
I started with the latest version but had the same problem so I tried with an older version that was said to handle permissions different. Not different result with different versions though. I feel I have really tried everything to get into edit mode.

Can you provide an example of the initialization config that is used?

var config = {
document: {
fileType: “docx”,
key: “doc_test_” + Date.now(),
title: “Start.docx”,
url: “https://192.168.1.228:8081/Start.docx”,
permissions: {
edit: true,
download: true,
print: true,
chat: false
}
},
documentType: “word”,
type: “desktop”,
editorConfig: {
mode: “edit”,
lang: “en”,
callbackUrl: “http://192.168.1.228:8082/callback”,
user: {
id: “test-user-” + Date.now(),
name: “Test User”
},
customization: {
autosave: true,
save: true,
comments: false,
help: false,
hideRightMenu: false,
logo: {
image: “”,
imageEmbedded: “”,
url: “”
},
review: {
hideReviewDisplay: false,
showReviewChanges: false,
reviewDisplay: “original”,
trackChanges: false,
hoverMode: false
},
toolbarNoTabs: false,
zoom: 100
}
},
token: “eyJhbGci…”, // JWT token (shortened for clarity)
width: “100%”,
height: “100%”
};

Thanks, it seems correct. Since I see the token, I assume JWT is enabled – I must ask what data are you signing in token?

By the way, please share output of docker ps and let me know if the same issue occurs in integrated test example that is available in the package from Welcome page of Document Server.

I have actually managed to get it to work. There were several small things like changing network addresses and finally using webview instead of iframe. Now I got OnlyOffice running inside Obsidian. Now on to fixing the final things.

1 Like

Glad to know. Feel free to share your solution to the community and let me know if I can close the topic as solved.