Copy to clipboard javascript


Is there a way to “run javascript” or something and copy a dynamic text in the clipboard without the use of plugins?

Thanks in advance :slightly_smiling_face: :computer:

1 Like

Here’s a guide you might found useful: How To Copy to Clipboard

Get the toolbox plugin so you can run javascript as part of a workflow.

1 Like

Hey @hacker, for a simple test try this. Just need an input, and a button to trigger the javascript.

var myContent = "put your dynamic data here";
 var my = $('<input>').val(myContent).appendTo('body').select()


Thanks, @aj11

Great, thanks, @lantzgould, always having a solution :grinning: :computer:

1 Like

Hey, @lantzgould,

Do you know how to copy and paste markdown text?

When I copy a RTE text, it copies with markdown (, etc…) and then, when I paste it in another RTE, it doesn´t keeps the markdown, the “” for example, is displayed as text.

@hacker hmm… can you post an example screenshot of the behavior?

My bad, it does have the markdown correctly, but only if you reload the page, no worries, thanks again

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.