This is an old revision of the document!
Table of Contents
svgEmbed Plugin
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Uploading SVG files via Media Manager
As of this writing, DokuWiki does not allow you to upload SVG files by default. This plugin will only embed SVG files that are uploaded to the wiki via the Media Manager for security's sake. To do this, you may need to create or edit the mime.local.conf
file for your wiki by adding this line:
- conf/mime.local.conf
svg image/svg+xml
Once this line is added, you should be able to upload SVG files.
Usage
Upload an SVG (Scalable Vector Graphics) file via the Media Manager; external SVG files will not be handled by this plugin for security reasons. Once you have done that, link it as you would any other image or media file, e.g.,
{{:some:ns:myfile.svg?<Arguments>|<Title>}}
The SVG will be placed into your wiki page via an <embed> tag rather than an <img> tag. This allows for things such as elements with hyperlinks in the SVG to be clickable, etc., whereas embedding SVG as an image does not. (Note that this depends on support in your browser.)
Change Log
- 2019-06-21
- Initial release
Known Bugs and Issues
None.