Skip to content

Commit 1856349

Browse files
committed
Bug Fix: some scenarios where buttons not displaying
1 parent ce02816 commit 1856349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemwnci/markdown-editpreview-ng.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
restrict: 'A',
4848
replace: false,
4949
link: function(scope, element, attrs) {
50-
var hiddenButtons = attrs.markdownHiddenButtons.split(",");
50+
var hiddenButtons = attrs.markdownHiddenButtons ? attrs.markdownHiddenButtons.split(",") : new Array();
5151
hiddenButtons.push('cmdPreview');
5252
element.markdown({hiddenButtons: hiddenButtons});
5353
},

0 commit comments

Comments
 (0)