From ee9f8a940ca54f44cdd8bf52fb46a336ad66c267 Mon Sep 17 00:00:00 2001 From: Matthew Harrison-Jones Date: Mon, 23 Sep 2013 16:23:05 +0100 Subject: [PATCH] Bug Fix: Date Keyboard Shortcut no-longer crashes the browser --- core/client/markdown-actions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/client/markdown-actions.js b/core/client/markdown-actions.js index c3bb14fac16..e74594313d2 100644 --- a/core/client/markdown-actions.js +++ b/core/client/markdown-actions.js @@ -113,6 +113,8 @@ break; case "currentDate": md = moment(new Date()).format("D MMMM YYYY"); + this.elem.replaceSelection(md, "end"); + pass = false; break; default: if (this.options.syntax[this.style]) {