Can't open editor - syntax error in editor script

Do you want to: Report a bug
For feature suggestions, describe the result you would like to achieve in detail.
For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem.
Document Server version: 9.0.3
Type of installation of the Document Server (docker, deb/rpm, exe, please point us to the installation guide that you used as well): Using the Docker base image together with Nodejs integration (links in text)
OS: Ubuntu 24.04.2 LTS x86_64
Browser version: Firefox 140.0.4 (aarch64)
Additional information: The app is deployed in a single docker container inside a cloud environment
Any relevant details about the situation. If you’ve modified configuration files or are using a proxy server that might affect the situation, please mention it. You can also attach images and videofile to the post (or to place them to external storage)

Hi

I’m trying to update Onlyoffice from v9.0.2 to v9.0.3 but with v9.0.3 I’m suddenly not able to open the editors. When I inspect the editor page, I see the following error in the browser console:

The syntax error is a missing value for submitForm in the editor script:

"editorConfig": {
    "actionLink": null,
    "callbackUrl": "https://documentserver_url/track?filename=new.docx&useraddress=xxxxx",
    "coEditing": null,
    "createUrl": "https://documentserver_url/editor?fileExt=docx&userid=uid-1&type=desktop&lang=en",
    "customization": {
        "about": true,
        "comments": true,
        "close": {"visible":false},
        "feedback": true,
        "forcesave": false,
        "goback": {"blank":false,"url":"https://documentserver_url"},
        "submitForm": 
    },

I double-checked v9.0.2 (which works) and here it has "submitForm": true.

I use the Nodejs example integration together with the onlyoffice/documentserver Docker base image. As far as I understand the editor script is a server-side script and I haven’t modified it in my implementation.

I’m unsure how to fix this error and would appreciate any guidance in this regard.

Thanks in advance.

Hello @J_whits,
Does this error occur in the test example as well (documentserver_url/example)? What happens if you specify the value mentioned above?

Hi @DmitriiV

Thanks for your reply.

The issue has been resolved. The problems was in the Nodejs integration and not in the documentserver. Specifically, it turned out that I was using an outdated version that, among other things, didn’t contain the submitForm entry in the constructor methods for users. Adding this solved the issue.

Thanks again.

1 Like

Understood, thank you for sharing!