I am able to run the commands, yes, but I cannot seem to make them
have any effect. My main questions are:
Does document.contentEditable need to be true?
Does it copy whatever is selected?
On Aug 22, 6:27 pm, Mihai Parparita <
mih...@chromium.org> wrote:
> WIth Chrome 13, you should be able to add clipboardRead
> and/or clipboardWrite permissions to your manifest and
> call document.execCommand('paste') or document.execCommand('copy') (seehttp://
code.google.com/chrome/extensions/manifest.html#permissions).
>
> Mihai
>
>
>
>
>
>
>
> On Mon, Aug 22, 2011 at 5:21 PM, Tyler Wayne <
maddog...@gmail.com> wrote:
> > I've had an extension that's wanted the ability to do this for a while
> > now, but I never got it too far off the ground because it seemed like
> > there was no way to get it working. Lately I looked at the extension
> > development page, and I saw the new permissions "clipboardRead" and
> > "clipboardWrite." I also noticed that the experimental clipboard API
> > seems to have disappeared.
>
> > Anyway, I have tried every method I can think of (ZeroClipboard,
> > document.execCommand('copy'), an object created by Manticore [ ]) and
> > I haven't been able to get anything to work. I just want to put some
> > text into the clipboard when the user clicks a button. Does anyone
> > know how to do this?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.
> > To post to this group, send email to
chromium-extensi...@chromium.org.
> > To unsubscribe from this group, send email to
> >
chromium-extensions+unsubscr...@chromium.org.