I've tried to look this up a few days now but came out empty handed I have a little website I'm working on and I've created a context menu (right click on a table row to get the context menu) and I wish to create a copy to clipboard method, I've a the data I wish to copy on a variable named $text This is the JS code:
copy: {
    name: "Copy",
    callback: function (key, option) {
    var $row = $(this).closest("tr");
    var $text = $row.find(".md").text();
    
    //the $text is what I'm trying to copy
    }I've tried many method to do so, using JS only and when I didn't find any method to do so I've tried to find a way to send this variable to my init.py code which runs the server but without success.
I would very apprachet if anyone will be able to help me understand what am I looking for to make this work and how to implement it.
Thank you very much
 
    