How to close onlyoffice window?

Hello, I have updated Nextcloud to version 18 via the Web-Updater in the meantime and am very happy about the integration of onlyoffice.

When I open a docx document I can edit it directly in the browser. But how can I close the onlyoffice window afterwards when I’m done working and want to go back to the previously displayed file folder?

I cannot find a button for this.

Hi,

Have a look at the top right. On the left hand side, next to the magnifier glass (search feature) there is a close button.

1 Like

I really cant find the button. Here is my screen:

Hi ,
The close button is next to the share button on the top.

2 Likes

Hello,

you can activate the “goback” button.

/apps/onlyoffice/controller/editorcontroller.php
in line 693

693: if ($folderLink !== NULL && $inframe !== 1) {
694: $params[“editorConfig”][“customization”][“goback”] = [
695: “url” => $folderLink
696: ];

@param integer $inframe - open in frame. 0 - no, 1 - yes, 2 - without goback for old editor (5.4)

3 Likes

Nice, thx a lot Dev2. This works!

Thx to ninehyde and Schmu for your help too!

unfortunately this doesn’t work either… I can see the back button now, but when I hit it, the full nextcloud desktop displays in a frame instead of just opening the folder…

I do not have this share button or the X. how to close it then?

Hi tomdrops,

Seems like you have an issue with the ONLYOFFICE App. You may reinstall it.

FYI You should see the close button on top inside the Nextcloud blue bar.

Kr,

I found a solution. Icons are only visible when you tick in OnlyOffice Settings - Open file in the same tab.

@Dev2 works not for me. If i change $inframe form 2 to 1, the button appears. But than - on clicking it - there’S always a new frame with nested only office like mentioned by @tomdrops.
I tried to close the browser and reopen nextcloud but still the same problem. Any more hints?

@POWeber can you post a screenshot?
In @tomdrops post I do see a white X button although it is barely visible in a light grey background.
For me it worked out of the box and has not been affected by any updates so far.


also make sure you have “open file in same tab selected” as recommended by @Jakub_Cieslik POWeber can you post a screenshot?
In @tomdrops post I do see a white X button although it is barely visible in a light grey background.
For me it worked out of the box and has not been affected by any updates so far.
also make sure you have “open file in same tab selected” as recommended by @Jakub_Cieslik

it is a problem with the colour scheme. If i change color to blue, the button is visible.

strange, as notification icon was still visible. Maybe there should be an option to change the colour.

Thx - now i can see the button and i need to change the design only.

Best wishes
POW

@POWeber I am glad it is working on. The notification Icon is part of Nextcloud so it changes color according to the design you select. However the X to close the document is part from Only-Office and I think it always stays white hence not visible in a lighter background

For me, neither the close button nor the share buttons show in snap Nextcloud 19 and OnlyOffice latest

1 Like

The close button is missing for me too (Nextcloud v 18.0.11, Onlyoffice v6.1.0, Community Document Server 0.1.8)

“open file in same tab selected” is enabled in settings, but the close icon is still missing.

Seems that there may be a bug.

Screen Shot 2020-12-07 at 11.59.34 pm

Note this bug report, worth watching for fixes:

Maybe use the folder symbol with the arrow pointing to right? Next to the symbol showing the persons editing in the grey space.

That button, “Open file location” does go back to the file menu.
However, it doesn’t close the document session.
You’ll notice that the number of sessions keeps growing if you use that button to exit.

So that’s an incomplete workaround and has significant consequences for server load.
This looks like a genuine bug that needs fixing.

1 Like

The “Open File Location” option is a terrible alternative to the close button because this does not close the active session and keeps the document in memory.

EDIT: Here is an interesting tidbit, I recently upgraded my server, if you are using NC20 and open a document from the Dashboard, a close button exists. And when you close a document it’s almost an instant save as well, it closes the session much quicker.

this is very old … but I always had the same issue. still to have it today with latest NC and only office versions. I thought i have seen in the past also somehwer a light x (so color scheme issue), but do not find it today…
how can I see and close the active sessions, when I use the “open file location” button?

thanks for any feedback …