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

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

Open saierd opened this issue 2 years ago • 1 comments

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

  • download the file from Nextcloud
  • open the editor
  • open the file
  • edit it
  • re-export as .drawio.png
  • re-upload to Nextcloud

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.

saierd avatar Mar 02 '23 15:03 saierd

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.

mdrobisch avatar Feb 13 '24 11:02 mdrobisch

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

github-actions[bot] avatar Dec 10 '24 04:12 github-actions[bot]