Hi Tony
Here's one way to do it. It's a classic application of the wikify widget: we
need access to the wikified text of a tiddler, rather than its raw text.
Note how the actions are placed in a separate action string to avoid having to
do the wikification until it is required (if it was within the button widget
then the wikify widget would be re-evaluated each time the store changes).
Best wishes
Jeremy
\define actions()
<$wikify name="content" text={{HelloThere}}>
<$action-sendmessage $message="tm-copy-to-clipboard" $param=<<content>>/>
</$wikify>
\end
<$button actions=<<actions>>>
Copy to clipboard
</$button>
--
Jeremy Ruston
[email protected]
https://jermolene.com
> On 19 Aug 2019, at 11:58, TonyM <[email protected]> wrote:
>
>
> Folks,
>
> I believe I should know this, but I have a tiddler name "tiddlername" which
> contains wikitext, list macros and more. Its a beautiful representation of a
> csv file from my tiddler data and fields.
>
> In any tiddler I can place {{tiddlername}} and see the wonderful result.
>
> However I want to be able to copy the result as text
>
> <$button message="tm-copy-to-clipboard" param= >
> Copy to clipboard
> </$button>
>
> How do I provide this with the appropriate parameter ?
>
> I have another tiddler called "realcutetiddler" which renders a really nice
> HTML output. Rather than save this as a static html tiddler I would like to
> copy the HTML result to the clipboard
>
> Again How do I provide the above with the appropriate parameter ?
>
> At the moment, with everything I try I just get in the clipboard the raw
> unprocessed wiki text in my tiddlers.
>
> Yours, very lost.
>
> Tony
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/08094092-20d2-43fc-b8d6-422eb07937f2%40googlegroups.com.
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/7DF93A3B-56DA-442E-A14C-DDE52D3EA4C6%40gmail.com.