Stackedit/js/extensions/buttonMarkdownSyntax.js

16 lines
499 B
JavaScript
Raw Normal View History

2013-06-20 22:28:49 +00:00
define([
"jquery",
2013-06-22 23:48:57 +00:00
"classes/Extension",
2013-06-20 22:28:49 +00:00
"text!html/buttonMarkdownSyntax.html",
2013-06-22 23:48:57 +00:00
], function($, Extension, buttonMarkdownSyntaxHTML) {
2013-06-20 22:28:49 +00:00
2013-06-22 23:48:57 +00:00
var buttonMarkdownSyntax = new Extension("buttonMarkdownSyntax", 'Button "Markdown syntax', true);
buttonMarkdownSyntax.settingsBlock = '<p>Adds a "Markdown syntax" button over the preview.</p>';
2013-06-20 22:28:49 +00:00
buttonMarkdownSyntax.onCreatePreviewButton = function() {
2013-07-30 08:46:36 +00:00
return buttonMarkdownSyntaxHTML;
2013-06-20 22:28:49 +00:00
};
return buttonMarkdownSyntax;
});