Skip to content

Commit

Permalink
Bug Fix: some scenarios where buttons not displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
codemwnci committed Sep 14, 2014
1 parent ce02816 commit 1856349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/codemwnci/markdown-editpreview-ng.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
restrict: 'A',
replace: false,
link: function(scope, element, attrs) {
var hiddenButtons = attrs.markdownHiddenButtons.split(",");
var hiddenButtons = attrs.markdownHiddenButtons ? attrs.markdownHiddenButtons.split(",") : new Array();
hiddenButtons.push('cmdPreview');
element.markdown({hiddenButtons: hiddenButtons});
},
Expand Down

0 comments on commit 1856349

Please sign in to comment.