Is there a way to create a button to paste the clipboard to a textfield?

There is the WidgetMessage: tm-copy-to-clipboard but what is the way to do the opposite without right-clicking, which is always a little tricky on mobile…

@JanJo as I understand it, it is not possible for a browser window/website to pull content from the clipboard, otherwise it may have access to critical data like a pass word.

however it can depend on how the clipboard gets its content, for example you could copy content from one part of the wiki to another part, you could design your own in wiki clipboard that stores the copy in a tiddler and this you can construct a button that pastes content from that tiddler.

it would be helpful if we established some naming standards to allow multiple solutions to find and use an in wiki clipboard eg $:/temp/clipboard

1 Like

That’s right. For more info see: Clipboard API - Web APIs | MDN

There also is one important requirement. Secure context, which means HTTPS:// - Which also means not good for file:// URLs.

1 Like

Mario, given we can pull only push from the clipboard I have not observed any other limitations.

FYI, Chrome/Edge consider file:// a secure context.