When working on a copy-paste plug-in, one of the files requires sdk/self, sdk/page-mod, and chrome without a problem, but Mozilla asked that we change the code to use the high-level clipboard API instead of the chrome. When I include the line var pageMod = require("sdk/page-mod");
the plug-in does not function. When installing the plug-in, the console logs an Object with the message “Module: ezd-copy-paste/main has no authority to load: sdk/clipboard
.”
How do I use the API? I can only find example code like on the API page.
Additionally, I noticed that the API only gives options for plain text, html, and image types instead of using any mimetype. This may be a problem, as we want to use xml as well.