guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amarjeet Singh <amarjee...@gmail.com>
Subject Re: Clipboard support using guacamole-common-js API
Date Wed, 06 Sep 2017 01:27:44 GMT
I went through spark view  and digging into that.

On Tue, Sep 5, 2017 at 10:43 PM, Mike Jumper <mike.jumper@guac-dev.org>
wrote:

> On Tue, Sep 5, 2017 at 5:51 AM, Amarjeet Singh <amarjeetxc@gmail.com>
> wrote:
> > Hi Dave,
> >
> > Please dig into getLocalClipboard() function in guacamole-common-js API,
> > once data is copied to clipboardContent it broadcast to guacClipboard
> i.e.
> > Guacamole menu.
> >
>
> It's good to check against the main Guacamole web application
> regarding implementation details and possible solutions, but beware
> that the functions you refer to are not part of guacamole-common-js,
> but rather the web application.
>
> >
> > I am not sure how to implement it in Chrome and Firefox but the following
> > code works in all the browsers without any API or extension. Please dig
> into
> > that.
> >
> > var q = new function() {
> >             function a(a, b) {
> >                 var c = q.parseClipData(b);
> >                 if (!(n.copyTextOnly && "text/plain" != c.type ||
> > q.processFileGroup(c)))
> >                     if (t.isEdge && "text/plain" != c.type) k.resetCSS(),
> > k.setValue(c.value), k.select(),
> >                         ...
>
> This code looks minified, and references functions which are not part
> of Guacamole. Where did you copy this from?
>
> - Mike
>

Mime
View raw message