From da26aae41ec5a5ae98d1d6eaa334aaabcd3ada6a Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 18 Jul 2014 10:31:02 +1000 Subject: [PATCH] FIX: somehow button is not set --- app/assets/javascripts/discourse/lib/Markdown.Editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/Markdown.Editor.js b/app/assets/javascripts/discourse/lib/Markdown.Editor.js index ac8e2ad929d..148ae87c91b 100644 --- a/app/assets/javascripts/discourse/lib/Markdown.Editor.js +++ b/app/assets/javascripts/discourse/lib/Markdown.Editor.js @@ -1420,7 +1420,7 @@ inputBox.focus(); - if (button.textOp) { + if (button && button.textOp) { if (undoManager) { undoManager.setCommandMode();