Topic on Extension talk:DrawioEditor/Flow

Aloist (talkcontribs)

Can someone please explain step by step how I can generate svg drawing and include them in the wiki pages? I always get .png images.


I also wonder where the drawing data are actually stored by this extension.

I use MW 1.39.5 on Linux (RHEL 9) Aloist (talk)

HoltzeDK (talkcontribs)

My solution is this:

  • I am using MediaWiki 1.39.2 with DrawioEditor 2.0.1
  • Also install NativeSvgHandler
  • Add 'http://www.w3.org/1999/xhtml' to $validNamespaces in ./includes/upload/UploadBase.php
  • Add 'svg' to $wgFileExtensions in LocalSettings.php
  • In the location where you want the svg insert: {{#drawio:figureName|type=svg}}
  • Click Edit
  • Create and save figure
  • Exit drawIO interface
  • You might get Fatal exception of type "Error"
  • Try adding $wgShowExceptionDetails = true; to LocalSettings.php
  • In my case the error then expands to Error: Call to undefined function MediaWiki\Extension\DrawioEditor\MXDocumentExtractor\gzinflate()
  • The fix for me is to add zlib to the php-profile of my web-service.
  • I am using a Synology Nas, so this is done in the Web Station interface --> Script Language Settings --> Extensions
Reply to "svg drawings"