[pmwiki-users] MiniEdit question

Petko Yotov 5ko at 5ko.fr
Sat Mar 3 10:42:02 CST 2012


On Saturday 03 March 2012 13:52:58 Hans Bracker wrote:
> I am using the Mini gallery with a custom ImgFmt like this
> $Mini['ImgFmt'] =
>   '<img class="mini" src="%1$s" title="%2$s" alt="%2$s" border="0" />
>    <br /><span class="minicaption">%2$s</span> ';
> 
> This displays a caption underneath each thumb image.

This is currently not supported and I cannot advise for using it. If it 
appears to work, some other things may break, now or in the future.

I haven't documented some internal variables in the documentation, because it 
is not easy for me to (1) offer support when you change them or (2) guarantee 
that current and future versions will work with them.

> But when I use a similar $MiniEdit['ImgFmt'] MiniEdit will not work
> and not display the caption underneath. MiniEdit seems only to work
> if the $MiniEdit['ImgFmt'] is only a single <img ..> element.

This variable is not documented in the manual either.

> Could that be extended to allow formats as above with $Mini['ImgFmt'] ?

Sorry, not very likely. MiniEdit is already quite complex, more than what I 
wanted. The functions handling the drag-and-drop, sorting, inserting and 
deleting features may be hard to adapt for multiple elements 
<img>+<br>+<span>. 

> MiniEdit is really cool for an editor shy to delve into complex
> markup!

The downside is that when you use it, you produce a more complex wiki markup 
which may even more intimidate shy editors. :-) 

If you choose Mini, isn't it for its simplicity and minimalism?

Petko



More information about the pmwiki-users mailing list