Stackedit/res/extensions/buttonMarkdownSyntax.js
2013-09-15 02:35:58 +01:00

16 lines
505 B
JavaScript

define([
"jquery",
"classes/Extension",
"text!html/buttonMarkdownSyntax.html",
], function($, Extension, buttonMarkdownSyntaxHTML) {
var buttonMarkdownSyntax = new Extension("buttonMarkdownSyntax", 'Button "Markdown syntax', true, true);
buttonMarkdownSyntax.settingsBlock = '<p>Adds a "Markdown syntax" button over the preview.</p>';
buttonMarkdownSyntax.onCreatePreviewButton = function() {
return buttonMarkdownSyntaxHTML;
};
return buttonMarkdownSyntax;
});