Contents
ImageMap Parser
Description
The ImageMap parser allows you to create clickable images inside Moin.
Download & Release Notes
Download |
Release Version |
Moin Version |
Release Notes |
1.0 |
1.6 |
Installation
For general installation instructions, see ParserMarket/InstallingParsers. This parser requires no special dependencies, such as outside Python libraries.
Usage
See ParserMarket/ImageMap/ReleaseNotes
Example
{{{#!ImageMap picture.jpg;width="345";height="312" FrontPage;shape="rect";coords="11,10,59,29";alt="Area1" http://www.xyz.com/;shape="circle";coords="42,36,96";alt="Area2" FrontPage/SubPage;shape="poly";coords="48,311,105,248,96,210,75,205,38,234,8,310";alt="Area3" Another Site in This Wiki;shape="rect";coords="11,10,59,29";alt="Area4" }}}
See ParserMarket/ImageMap/ReleaseNotes for more details.
Copyright
This parser is copyrighted by OliverSiemoneit
License
This parser is released under the terms of the GNU GPL.
Discussion
I'm not sure if this is the right place to mention it, but I've just installed MoinMoin 1.8 and the parser works with this version, too.
- Mario
It seems the plugin does some attribute sanitizing and checking of quotes, but it is not sufficient. For example, the following map definition will produce an unquoted mouseover= in the resulting HTML:
Foo.gif;width="630";height="458" SomePage;shape="bar;coords=" onmouseover=blaa
I think the plugin shouldn't try to do any fancy checks on the number of "", but just strip of any "" around an attribute value, HTML escape the value (i.e., " to ") and then put "" around it again. Until then, I would not recommend using this plugin in a public environment.