_
svgEditor.addExtension("Hello World", function() { return { svgicons: "extensions/helloworld-icon.xml", buttons: [{...}], mouseDown: function() { ... }, mouseUp: function(opts) { ... } }; });