Reading the Clipboard to a Variable


(Matthew G. Saroff) #1

I need to read the the clipboard in response to the user action.

I’m trying to write an addon that will mimic the functionality of bbCodeXtra,

I’ve found a Webextension for chrome that has similar functionality, but it does not allow one to apply stuff from the clipboard, which means that I cannot do something like this:

This shouldn’t be a security issue, since the reading of the clipboard data would only occur when the user asks for it, but I cannot for the life of me figure out how to read the clipboard contents into a variable to do this. (The selection bit I’ve got down)


(Martin Giger) #2