From caf303a9f741b2d082336ee0a79679ac1c3581bc Mon Sep 17 00:00:00 2001 From: Jovanni Lo Date: Wed, 30 Jul 2014 09:44:06 +0800 Subject: [PATCH] Disabled buttons on Preview Fixes [Issue #82](/~https://github.com/toopay/bootstrap-markdown/issues/82) --- js/bootstrap-markdown.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/bootstrap-markdown.js b/js/bootstrap-markdown.js index 2256df6..67a0e5e 100644 --- a/js/bootstrap-markdown.js +++ b/js/bootstrap-markdown.js @@ -458,6 +458,8 @@ // Enable all buttons this.enableButtons('all') + // Disable configured disabled buttons + this.disableButtons(this.$options.disabledButtons) // Back to the editor this.$textarea.show()