jgraph / drawio-nextcloud

Fork from 2022 nextcloud repo
GNU Affero General Public License v3.0
68 stars 15 forks source link

Open .drawio.png and .drawio.svg files directly #41

Open saierd opened 1 year ago

saierd commented 1 year ago

Saving diagrams as png or svg file with the embedded diagram is often very useful, since it allows an easy preview in other programs. This is already possible using the drawio-nextcloud plugin, but in order to edit such a file one has to

Would it be possible to open such files directly from the Nextcloud files app? In that case the save button should re-export it to the same file that was opened originally.

mdrobisch commented 6 months ago

I tried the following simple approach with not luck :-( . Changing the mime mapping: in config/mimetypemapping.json

like:

{
    "drawio": [
        "application/x-drawio"
    ],
    "png": [
        "application/x-drawio"
    ]
}

Will not work.

The file remains to be opened with the image viewer.

Just fyi. Feedback is welcome.