I’m on the right track (at least I’m optimistic and I think I am), but I’m still missing something.
I created a tiddler tagged $:/tags/EditorToolbar
, with the due fields (caption, icon, description and condition the latter I’m not sure if I filled it with the correct stuff, but I copied the one that had the bold button. But I don’t think there’s actually a problem here).
The problem is in the text field where my best attempt has been:
<$action-sendmessage $message=“tm-copy-to-clipboard” $param={!!text}/>
it clearly doesn’t work, but I’m pretty sure I’m on the right track, and the only thing I’m doing wrong is the $param
. Ah right, better clarify, what I’m trying to get is a button in the EditorToolbar that if pressed copies the entire “text” field of the tiddler I’m editing (whose editor contains my custom button) to the clipboard.
-Sam