Without a demo with the updated code you are mentioning, I can only guess.

The download saver involves a click event at some point to trigger the 
download. Is your widget adding a click listener to the body/document that 
might be interfering?

On Sunday, June 28, 2020 at 9:58:20 AM UTC+2, Souf K wrote:
>
> Thanks for your quick answer :)
>
> I can get it to work from my browser's Web Console with both:
>
> $tw.rootWidget.dispatchEvent({
>     type: 'tm-save-wiki',
> });
>
> and 
>
> $tw.rootWidget.invokeActionString(`<$wikify name="site-title" 
> text={{$:/config/SaveWikiButton/Filename}}>
> <$action-sendmessage $message="tm-save-wiki" 
> $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>
> </$wikify>`)
>
>
> Unfortunately, for some reason,I doesn't work when called from my code.
> I'm at a loss here...
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev/074a792a-7d14-4143-82b4-ae3a5b4a99eeo%40googlegroups.com.

Reply via email to