Hi,
I am trying to do copy and paste using Mozilla I am able to read and
write data to clipboard but my issue is I need to paste the clipboard
data to my editor. I have seen nsIClipboardCommands.paste()
void paste ( )

Paste the contents of the clipboard into the current selection.


I tried by
       clipm = Components.classes["@mozilla.org/webshell;
1"].getService();
 
clipm.QueryInterface(Components.interfaces.nsIClipboardCommands);
        clipm.paste()
But getting error
uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIClipboardCommands.selectAll]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
http://localhost:16747/WebSite10/FireFoxCopyPaste.aspx ::
clipBoardPaste :: line 101"  data: no]

Line 0


_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to