Hi Andreas You'll have probably spotted that getwikified.js is frustratingly close to the existing <$view format="wikified"/>; of course, the latter can't be used to specify an attribute as you need to do here.
I've been wondering about another approach: adding a new "tm-open-file" message that would function just like "tm-download-file" except that it would open the file in a new tab (using document.write, perhaps?), rather than downloading it. Best wishes Jeremy. On Tue, Feb 24, 2015 at 5:58 PM, Andreas Hahn <[email protected]> wrote: > Hi, > > wow.. I totally misunderstood the question. I thought he wanted to open a > rendered version of a tiddler in another tab. Well I will just share my > solution here. > Note that you can also open the source wikitext of a tiddler in a new tab > with the <<makedatauri>> macro. Copy this into a tiddler to see how it > works, note that > you will need to import the macro I attached first in order to make the > rendered preview work. > > \define makeURI() > data:text/html;base64,$(renderResult)$ > \end > > \define embedPreview(tiddler) > <$set name="renderResult" value=<<getwikified "$tiddler$">> > > <a target="blank" href=<<makeURI>> >Preview</a> > </$set> > \end > > \define download-inner() > <a target="blank" href=<<makedatauri "$(text)$" "text/plain">> > >Source</a> > \end > > Get a rendered preview of a tiddler in a new tab: > <<embedPreview "$:/Acknowledgements">> > > > Get the source code of a tiddler in a new tab: > <$set name="text" value={{$:/Acknowledgements!!text}}> > <<download-inner>> > </$set> > > Since I am actually interested in the rendered preview myself, is it > possible to do it in an easier ? I couldn't seem to figure out if the > wikitext possibilites are enough already, so I made the macro. > > /Andreas > > > -- > 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. > For more options, visit https://groups.google.com/d/optout. > -- Jeremy Ruston mailto:[email protected] -- 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. For more options, visit https://groups.google.com/d/optout.

