Skip to content

madsi1m/nextcloud-drawio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nextcloud Draw.io integration app

This app allows users to create and edit diagrams in Nextcloud using Draw.io on-line editor.

App Store link: https://apps.nextcloud.com/apps/drawio

Once installed, you will see an option to create a Draw.io diagram from the 'create file' menu. Note: this app does not produce an app icon.

Info

  • Requires Nextcloud >11.0.0
  • Tested with Chrome 58 and Firefox 53
  • Multi language support (l10n)
  • Inspired by the old Draw.io Integration and OnlyOffice

Mimetype detection

Unfortunately, apps can't declare new mimetypes on the fly. To make Draw.io work properly, you need to add a new mimetypes in the mimetypemapping.json file (at Nextcloud level).

To proceed, just copy /resources/config/mimetypemapping.dist.json to /config/mimetypemapping.json (in the config/ folder at Nextcloud’s root directory; the file should be stored next to the config.php file). Afterwards add the two following line just after the “_comment” lines.

"drawio": ["application/x-drawio"],

If all other mimetypes are not working properly, just run the following command:

sudo -u www-data php occ files:scan --all

Download

zip or tar.gz

Changelog

v0.9.0

  • Added German translation (PR #38)
  • Added "offline mode" (PR #43)
  • Added .drawio file type in addtion to .xml (PR #41)
  • Querystring in custom drawioUrl (PR #37)
  • Minor other fixes (PR #39)

v0.8.9

  • NC13 compatibility (issue #25)
  • IE support (PR #27)
  • Brazilian Portuguese translation (PR #26)

v0.8.8

  • NC12 compatibility (issue #10)
  • "Origin" integration issue (issue #9)

v0.8.7

  • Edited files are now opened in the same window
  • Code changes

Complete changelog

Installation

  1. Copy Nextcloud draw.io integration app ("drawio" directory) to your Nextcloud server into the /apps/ directory
  2. Go to Apps -> "+ Apps" > "Not Enabled" and Enable the Draw.io application

Configuration

Go to Admin page and change the settings you want:

Click "Save" when you're done.

License

  • Released under the Affero General Public License version 3 or later.
  • [CC 3.0 BY] File icon made by DinosoftLabs / Link

Contributors

View all

Support

  • Any feedback and code is greatly appreciated!

Packages

No packages published

Languages

  • PHP 53.5%
  • JavaScript 45.8%
  • CSS 0.7%