define([ "jquery", "classes/Extension", "text!html/buttonViewer.html", ], function($, Extension, buttonViewerHTML) { var buttonViewer = new Extension("buttonViewer", 'Button "Viewer"', true, true); buttonViewer.settingsBlock = '
Adds a "Viewer" button over the preview.
'; buttonViewer.onCreatePreviewButton = function() { return buttonViewerHTML; }; return buttonViewer; });