DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:svgembed

This is an old revision of the document!


svgEmbed Plugin

Compatible with DokuWiki

  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" unknown

plugin Allows the use of the standard media syntax, but SVG files are placed with the <embed> tag, not the <img> tag.

Last updated on
2019-06-22
Provides
Syntax, Helper
Repository
Source

Tagged with image, images, media, svg

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, but this plugin only embeds 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.

Discussion

plugin/svgembed.1561157330.txt.gz · Last modified: 2019-06-22 00:48 by Restless