Stackedit/js/extensions/buttonViewer.js

16 lines
418 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-06-22 23:48:57 +00:00
var buttonViewer = new Extension("buttonViewer", 'Button "Viewer"', true);
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;
});