Replies: 4 comments
-
I think it needs to be a "per button" setting, otherwise it wouldn't be backwards compatible. There are 2 possibilities
I personally would suggest to use option 2, since it works with translated labels. User defined labels are 1 language only. Due to the meaning of the icon itself, there shouldn't be different user defined texts. What do you think? .. The implementation is relatively straight forward. POC
macrocall:
|
Beta Was this translation helpful? Give feedback.
-
The copy-to-clipboard macro is pretty simple. Rather than risking making it more complex by adding more parameters and options, I'd be tempted to explore your use cases via alternate versions of the macro that are completely separate. For example, |
Beta Was this translation helpful? Give feedback.
-
probably related: proposal to improve copy-to-clipboard #4463 |
Beta Was this translation helpful? Give feedback.
-
I did think about it again. The problem is I do want to have a maximum flexible drop-in-replacement for the tw5-com copy-to-clipboard macro, without duplicating any code. I did take the code my proposal from: proposal to improve copy-to-clipboard #4463 and added 2 new macros, which have a simple interface and copy-to-clipboard has the flexibel interface. It can
On the other hand the existing doc-macros need an overhaul anyway. .. They still use |
Beta Was this translation helpful? Give feedback.
-
In https://tiddlywiki.com/prerelease/#%24%3A%2Fcore%2Fmacros%2Fcopy-to-clipboard the handy macro
copy-to-clipboard
has a hardcoded caption. seeand the caption:
<$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/>
But there are many use cases where, only the icon is enough!
So my suggestion is
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions