Folks,
This is working quite nicely but I notice when I wish to highlight and copy
part of the code displayed within the button that it also triggers the
button to edit the code.
I could provide an override button, but wondering it is is possible to stop
the button action when click and drag "selection" is taking place?
<$button tag="div" message="tm-edit-tiddler" param=<<currentTiddler>>
tooltip="Click to edit code" style="font-size: 0.9em; border: 1px solid
green;">
<$codeblock code={{!!text}}/>
</$button>
My smart show code solution is almost finished,
Regards
Tony
Regards
Tony
On Saturday, July 4, 2020 at 9:57:51 AM UTC+10, TW Tones wrote:
>
> Tanks Saq, Mat and Mark,
>
> A fresh start this morning and it was trivial to fix, this is what I am
> using
>
> <$button tag="div" message="tm-edit-tiddler" param=<<currentTiddler>>
> tooltip="Click to edit code">
> <$codeblock code={{!!text}}/>
> </$button>
>
> My Errors
>
> - Spending too much time on the computer
> - Not removing the problem code from a larger problem (testing
> separately a single component)
> - Leaving some style CSS in the button after experimenting.
>
> Thanks for you forbearance
>
> TW Tones
>
> On Friday, July 3, 2020 at 12:16:30 PM UTC+10, TW Tones wrote:
>>
>> Folks,
>>
>> Just working on a smart show code facility
>>
>> I am using the following at the core of it
>> <$list filter="[conditions]" variable=nul>
>> <$codeblock code={{!!text}}/>
>> </$list>
>>
>> Can anyone tell me how to make the resulting code block respond to a
>> click, anywhere in the code block, to open the currentTiddler for edit?
>>
>> Thanks in advance
>>
>> TW Tones
>>
>
--
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/5f3d60f9-f108-4655-b8fc-020981b50beeo%40googlegroups.com.