Skip to content

Instantly share code, notes, and snippets.

@satyr
Created June 13, 2009 11:53
Show Gist options
  • Save satyr/129213 to your computer and use it in GitHub Desktop.
Save satyr/129213 to your computer and use it in GitHub Desktop.
/* This is a template command. */
CmdUtils.CreateCommand({
name: "example",
description: "(A short description of your command)",
help: "(How to use your command)",
icon: "http://www.mozilla.com/favicon.ico",
author: {name: "Your Name", email: "[email protected]"},
license: "GPL",
homepage: "http://www.mozilla.com/",
arguments: {object: noun_arb_text},
preview: function(pblock, args) {
pblock.innerHTML = "Your input is <b>" + args.object.html + "</b>.";
},
execute: function(args) {
displayMessage("You selected: " + args.object.text, this);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment