0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Bug Fix: Date Keyboard Shortcut no-longer crashes the browser

This commit is contained in:
Matthew Harrison-Jones 2013-09-23 16:23:05 +01:00 committed by Hannah Wolfe
parent 939dba0468
commit 67132ff28b

View file

@ -113,6 +113,8 @@
break; break;
case "currentDate": case "currentDate":
md = moment(new Date()).format("D MMMM YYYY"); md = moment(new Date()).format("D MMMM YYYY");
this.elem.replaceSelection(md, "end");
pass = false;
break; break;
default: default:
if (this.options.syntax[this.style]) { if (this.options.syntax[this.style]) {