<$list filter="[conditions]" variable=nul>
<$codeblock code={{!!text}}/>
</$list><$button tag="div" actions=<<myactions>> >
<!-------content goes here-->
</$button><$button tag="pre" actions=<<myactions>> >
<!-------code goes here-->
</$button><$button tag=<<mytag>> actions=<<myactions>> >
<!-------content goes here-->
</$button>Basically how to wrap "anything" in a button, to get the trigger but not alter the appearance of the content of the button.
I will try again later/tomorrow. I believe I followed these patterns. I will try again and if it plays up I will do an image capture.
Thanks for your help.
Tonu
<$button tag="div" message="tm-edit-tiddler" param=<<currentTiddler>> tooltip="Click to edit code">
<$codeblock code={{!!text}}/>
</$button>
<$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>
[..] 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'm not complaining just observing that click and click drag are not differentiated.
Perhaps it never is?
tont
I'm not complaining just observing that click and click drag are not differentiated.
Exactly, come to think of it many apps including tiddlywiki toolbar buttons, if you click but don't release and drag the pointer away from the tiddler the click action does not occur.ie they only trigger on release if still on the button.
<$button set="!!caption" setTo="aaa" style="cursor:auto; -webkit-user-select:text; -moz-select:text; -ms-select:text; user-select:text;">
Press me!
</$button>