[Vimperator] how-to add copy function
Martin Stubenschrott
stubenschrott at gmx.net
Thu May 24 14:28:09 PDT 2007
On Thu, May 24, 2007 at 01:35:07PM -0700, Winter Faulk wrote:
> Hi,
>
> I posted a bug earlier about not being able to copy after you response I
> did a little research into copying data into the clip board with FF
> and added the fallowing code to the commands.js file and it works.
<snip>
Hi,
thanks for looking into this, but I don't understand what exactly your
code does.
There is already this function:
function copyToClipboard(str)
{
var clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
.getService(Components.interfaces.nsIClipboardHelper);
clipboardHelper.copyString(str);
}
Why not use this, instead of your complicated clipthis() function?
--
Martin
More information about the Vimperator
mailing list