copy paste

Hi Webix team,

In this snippet - https://snippet.webix.com/f48ygf19

  1. If I am clicking on copy button Link should get copied and
    2.I can directly openthe copied link by pasting in another tab
  2. I don’t want to select the link by going into input box

Hello,

It can be solved as

click:function(){
    navigator.clipboard.writeText($$("id_link_share_text").getValue());
}

Also, you can use document.execCommand:

Please check the sample: https://snippet.webix.com/efixxb38

@Nastja thanks:)