On Thursday, October 29, 2015 at 2:09:21 AM UTC-7, RichardWilliamSmith
wrote:
>
> Tiddlywiki is really twisting my brain again. I'm trying to make a
> one-click image exporter. At first I tried to do it by decoding the base64
> tiddlers myself, using a javascript macro - I seemed to get something that
> was almost, but not quite, the right encoding... as I was reading for
> possible fixes, I hit on the idea of just using an HTML <a> element with
> the download attribute set to the title of the tiddler and the href set
> with the datauri macro.
>
> This didn't work.... As far as I can tell the crux of the problem is that
> content inside html tags is not wikified, so for example...
>
Try this.... it works (tested on TiddlyWiki.com):
\define makedatalink()
<a href=<<makedatauri type:"$(type)$" text:"$(text)$">> download="$(tid)$">$
(label)$</a>
\end
\define datalink(label,tid)
<$vars label="$label$" tid="$tid$" type={{$tid$!!type}}
text={{$tid$!!text}}>
<<makedatalink>>
</$vars>
\end
<<datalink "download image" "Introduction Video Thumbnail.jpg">>
enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals
YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://TiddlyTools.github.com/fundraising.html#MakeADonation
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/1ec113be-566a-442e-87c5-0b68b5b76565%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.