Note that there are some explanatory texts on larger screens.

plurals
  1. POTrying to use zclip in Meteor app
    primarykey
    data
    text
    <p>Can't seem to use zclip in my simple Meteor clipboard app: <a href="http://commandc.meteor.com" rel="nofollow">http://commandc.meteor.com</a></p> <p>I thought I was missing something in terms of how meteor was loading jquery, zclip, and the copying script, so I moved everything into html and used external sources. Still, copying doesn't work. Very similar code working here: <a href="http://jsbin.com/uladis/7/edit" rel="nofollow">http://jsbin.com/uladis/7/edit</a></p> <p>PS: I know I have another problem copying text of just the correct element, rather than all p tags. Not worrying about that yet.</p> <p>EDIT: Using Akshat's method below gives this exception for each instance of copy:</p> <p><code>Exception from Meteor._atFlush: TypeError: Object [object Object] has no method 'zclip' at Object.Template.copy.rendered (http://localhost:3000/command-c.coffee.js?78eccd42fde3d566da961e73c1ab9f4ad83a4e26:18:35) at Spark.createLandmark.rendered (http://localhost:3000/packages/templating/deftemplate.js?91fdd4353cca922f7a59ff593d000211c2857c84:125:44) at http://localhost:3000/packages/spark/spark.js?c202b31550c71828e583606c7a5e233ae9ca50e9:386:32 at Array.forEach (native) at Function._.each._.forEach (http://localhost:3000/packages/underscore/underscore.js?47479149fe12fc56685a9de90c5a9903390cb451:79:11) at http://localhost:3000/packages/spark/spark.js?c202b31550c71828e583606c7a5e233ae9ca50e9:384:7 at http://localhost:3000/packages/deps/deps-utils.js?f3fceedcb1921afe2b17e4dbd9d4c007f409eebb:106:13 at http://localhost:3000/packages/deps/deps.js?1df0a05d3ec8fd21f591cfc485e7b03d2e2b6a01:71:15 at Array.forEach (native) at Function._.each._.forEach (http://localhost:3000/packages/underscore/underscore.js?47479149fe12fc56685a9de90c5a9903390cb451:79:11)</code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload