Stackedit/public/res/extensions/buttonViewer.js

16 lines
424 B
JavaScript
Raw Normal View History

2013-06-19 22:13:24 +00:00
define([
"jquery",
2013-06-22 23:48:57 +00:00
"classes/Extension",
2013-06-19 22:13:24 +00:00
"text!html/buttonViewer.html",
2013-06-22 23:48:57 +00:00
], function($, Extension, buttonViewerHTML) {
2013-06-19 22:13:24 +00:00
2013-09-15 01:35:58 +00:00
var buttonViewer = new Extension("buttonViewer", 'Button "Viewer"', true, true);
2013-06-22 23:48:57 +00:00
buttonViewer.settingsBlock = '<p>Adds a "Viewer" button over the preview.</p>';
2013-06-19 22:13:24 +00:00
buttonViewer.onCreatePreviewButton = function() {
2013-07-30 08:46:36 +00:00
return buttonViewerHTML;
2013-06-19 22:13:24 +00:00
};
return buttonViewer;
});