Markdown editor improvements

This commit is contained in:
NGPixel
2016-09-10 22:53:21 -04:00
parent 492bb9efa6
commit 97602b51c8
160 changed files with 558 additions and 123 deletions

View File

@@ -8,7 +8,7 @@ jQuery( document ).ready(function( $ ) {
$('a').smoothScroll({
speed: 400,
offset: -20
offset: -70
});
var sticky = new Sticky('.stickyscroll');
@@ -33,25 +33,6 @@ jQuery( document ).ready(function( $ ) {
});
}
// ====================================
// Markdown Editor
// ====================================
if($('#mk-editor').length === 1) {
var mde = new SimpleMDE({
autofocus: true,
autoDownloadFontAwesome: false,
element: $("#mk-editor").get(0),
hideIcons: ['heading', 'quote'],
placeholder: 'Enter Markdown formatted content here...',
showIcons: ['strikethrough', 'heading-1', 'heading-2', 'heading-3', 'code', 'table', 'horizontal-rule'],
spellChecker: false,
status: false
});
}
// ====================================
// Establish WebSocket connection
// ====================================