Caching + Edit Mode UI
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
jQuery( document ).ready(function( $ ) {
|
||||
|
||||
// Scroll
|
||||
|
||||
$('a').smoothScroll({
|
||||
speed: 400,
|
||||
offset: -20
|
||||
@@ -9,6 +11,8 @@ jQuery( document ).ready(function( $ ) {
|
||||
|
||||
var sticky = new Sticky('.stickyscroll');
|
||||
|
||||
// Alerts
|
||||
|
||||
var alerts = new Alerts();
|
||||
if(alertsData) {
|
||||
_.forEach(alertsData, (alertRow) => {
|
||||
@@ -16,4 +20,20 @@ jQuery( document ).ready(function( $ ) {
|
||||
});
|
||||
}
|
||||
|
||||
// Editor
|
||||
|
||||
if($('#mk-editor').length === 1) {
|
||||
|
||||
let mde = new SimpleMDE({
|
||||
autofocus: true,
|
||||
element: $("#mk-editor").get(0),
|
||||
autoDownloadFontAwesome: false,
|
||||
placeholder: 'Enter Markdown formatted content here...',
|
||||
hideIcons: ['heading', 'quote'],
|
||||
showIcons: ['strikethrough', 'heading-1', 'heading-2', 'heading-3', 'code', 'table', 'horizontal-rule'],
|
||||
spellChecker: false
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
});
|
Reference in New Issue
Block a user