Im trying to copy the selected text into clipboard in JavaScript
in firefox mozilla. But i couldnt find a way. recently i came across a 
bit of code  as :

clip = Components.classes["@mozilla.org/webshell;1"].getService();
clip.QueryInterface(Components.interfaces.nsIClipboardCommands);
clip.copySelection()

naturally i didnt work wiht out knowing details. Could you help me about 
this?
How could get webshell API? or could make code work ? Or is there another
way to do it?
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to