Keeping scripts in Drafts and using js eval() in code editor

This is how I store all my scripts! Every one of them is a draft and the action to call them is this:

var s = Draft.find("UUID of script");
this.eval(s.content);

It makes creating and editing scripts SO much easier!

5 Likes