Skip to content

ecauli/myplaceonline_ffclipboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myplaceonline_ffclipboard

Firefox Add-on link: https://addons.mozilla.org/en-US/firefox/addon/ffclipboard/

Originally created to workaround ZeroClipboard's limitation of only working on mouse clicks.

Once this Add-On is installed into Firefox >= 34, every page has an additional window.ffclipboard object which allow access to the Firefox Add-On SDK's clipboard.

Simple Example

if (window.ffclipboard) {
  window.ffclipboard.setText("clipboard text");
}

Example: Set clipboard text when a link is clicked

if (window.ffclipboard) {
  $("#somelink").keypress(function(e) {
    if (e.which == 13) {
      window.ffclipboard.setText("clipboard text");
    }
  });
}

Development

$ cd src
$ export PATH=${ADDONSDK}/bin/:$PATH
$ activate
$ cfx run

# To build an XPI:
$ cfx xpi

About

Firefox clipboard addon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.2%
  • HTML 43.8%