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