Improve markdown editor

This commit is contained in:
2026-04-15 09:14:24 +02:00
parent c7d5db7af7
commit b3ca714597
6 changed files with 564 additions and 14 deletions

17
assets/editor/dates.js Normal file
View File

@@ -0,0 +1,17 @@
window.EditorDates = (function () {
function pad2(n) { return n < 10 ? '0' + n : '' + n; }
function isoDate() {
var d = new Date();
return d.getFullYear() + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
}
function longDate() {
return new Date().toLocaleDateString('de-DE', {
weekday: 'long', year: 'numeric', month: 'long', day: 'numeric'
});
}
return { isoDate: isoDate, longDate: longDate };
})();