nextcloud-drawio icon indicating copy to clipboard operation
nextcloud-drawio copied to clipboard

Editor doesn't start if it's a public link

Open trockenasche opened this issue 6 years ago • 17 comments

The draw.io online editor doesn't start if you share (a folder within) a draw.io xml file via public link. Instead it will just want to be downloaded.

trockenasche avatar Aug 17 '17 15:08 trockenasche

BTW: Collabora online start the editor with public links. Maybe this is a hint: https://github.com/nextcloud/richdocuments/blob/bd5584faa23dac27caedd83a74093c8220ce7da6/js/viewer/viewer.js#L67

trockenasche avatar Aug 17 '17 15:08 trockenasche

I just noticed, that even the draw.io Icon doesn't show up with the public link.

trockenasche avatar Aug 17 '17 15:08 trockenasche

I also would like that my customers can open the drawio application for xml files that I share with them via a public share link.

nerrehmit avatar Dec 13 '18 13:12 nerrehmit

I as well, would really like if it was possible to have the drawio work with public links

hoerup avatar Sep 04 '19 08:09 hoerup

@ACTom you added Collaborative editing for mindmap. Maybe you could help with this ?

hoerup avatar Sep 04 '19 09:09 hoerup

@hoerup Sorry, I have no time to do this recently.

ACTom avatar Sep 05 '19 14:09 ACTom

I clone code from only office to allow open by public link. Almost good, but have problem at editor.js code because it cant download file content. OCA.DrawIO.EditFile = function (editWindow, filePath, origin) { var ncClient = OC.Files.getClient(); var receiver = function (evt) { if (evt.data.length > 0 && origin.includes(evt.origin)) { var payload = JSON.parse(evt.data); if (payload.event === "init") { var loadMsg = OC.Notification.show(t(OCA.DrawIO.AppName, "Loading, please wait.")); **ncClient.getFileContents(filePath)** i try give him token full url like '/s/MyToken/download' and relative path like '/user/filepathandname' and its return 401. OnlyOffice app use callbacks and it use token at client script.. Can any body help with script source code: NextCloud-DrawIO

Luckyvb avatar Nov 18 '19 15:11 Luckyvb

First beta ready изображение

Luckyvb avatar Nov 19 '19 12:11 Luckyvb

Is anybody know can set some parameter to drawio application open file in readonly mode ?

Luckyvb avatar Nov 19 '19 16:11 Luckyvb

@Luckyvb whats the status here? Can you open a PR to enable a side by side view of your changes?

tacruc avatar Feb 14 '20 13:02 tacruc

sorry, i was busy. i`am create pr later. about 1..2 days

Luckyvb avatar Feb 17 '20 12:02 Luckyvb

#104

Luckyvb avatar Mar 01 '20 22:03 Luckyvb

@pawelrojek I guess this can be closed since #104 was merged.

madmath03 avatar Feb 12 '21 15:02 madmath03

I have updated to 0.9.9 - but i haven't yet been able to get the public link working ? Is there a trick or a setting somewhere that needs to be set ?

Update: apparently it only works with with the .drawio extension (when that is mapped manually)

hoerup avatar Mar 04 '21 07:03 hoerup

Doesn't work for me on a public link. *.drawio file will be just downloaded.

helmut72 avatar Mar 06 '21 10:03 helmut72

For me the problem still persists in two different Nextcloud instances :-(

Both on versions 1.0.1 for drawIO and 21.0.5 for Nextcloud. Same situation as in the initial post.

I'm happy to provide logs or assistance to support investigations!

thomas-mc-work avatar Oct 21 '21 08:10 thomas-mc-work

Does anyone know if there is a solution for this in the foreseeable future?

JoannesSa avatar Nov 10 '21 18:11 JoannesSa