Hello forum,

inspired by @Charlie Veniot I tried to add the reset button to my wiki - 
but no effect when clicking on the button.
Any idea why?

Also tested on https://tiddlywiki.com/
[image: code.png]
*Code:*
<$action-setfield 
$tiddler="$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize" 
text={{fontsizeValue}}/>
<span style="font-size: 0.85em; font-weight: 400;">Schriftgröße (Editor): 
</span>&nbsp; 
<$range tiddler="fontsizeEditor" min="16" max="24" default="18" 
increment="0.5" class="slider"/> 
&nbsp;
<span style="font-size: 0.7em"> {{fontsizeEditor}} px </span>
<$button class="tc-btn-invisible" tooltip="Reset">
<$action-setfield 
$tiddler="$:/themes/tiddlywiki/vanilla/metrics/bodyfontsize" 
text="18px"/>&nbsp;
<span style="font-size:1em;">''↺''</span>
</$button>

with 
[image: Stylesheet.png] 

Thanks for help.
Stefan

Charlie Veniot schrieb am Donnerstag, 18. Mai 2023 um 19:20:47 UTC+2:

> Done.  Plus a "reset" button.
>
> [image: Screenshot 2023-05-18 2.19.38 PM.png]
>
> On Thursday, May 18, 2023 at 10:50:52 AM UTC-3 Scott Sauyet wrote:
>
>>  Charlie Veniot wrote:
>> > Just for the giggles to figure out how I would go about it.
>>
>> Very nice!  One suggestion: make the max 200 or so rather than the 
>> default 100.  Help those with poorer eyesight!
>>
>>   -- Scott
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6a950ae4-0269-4572-919c-9b81f57970f5n%40googlegroups.com.

Reply via email to