I went through spark view and digging into that. On Tue, Sep 5, 2017 at 10:43 PM, Mike Jumper <[email protected]> wrote:
> On Tue, Sep 5, 2017 at 5:51 AM, Amarjeet Singh <[email protected]> > 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 >
