Stackedit/res/extensions/buttonMarkdownSyntax.js

16 lines
505 B
JavaScript
Raw Permalink 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-09-15 01:35:58 +00:00
var buttonMarkdownSyntax = new Extension("buttonMarkdownSyntax", 'Button "Markdown syntax', true, true);
2013-06-22 23:48:57 +00:00
buttonMarkdownSyntax.settingsBlock = '<p>Adds a "Markdown syntax" button over the preview.</p>';
2013-06-20 22:28:49 +00:00
buttonMarkdownSyntax.onCreatePreviewButton = function() {
2013-08-08 22:29:49 +00:00
return buttonMarkdownSyntaxHTML;
2013-06-20 22:28:49 +00:00
};
2013-08-08 22:29:49 +00:00
2013-06-20 22:28:49 +00:00
return buttonMarkdownSyntax;
});