Logic error. Fixes #2154
This commit is contained in:
parent
b7d0c19a38
commit
43eb8c4946
|
|
@ -91,7 +91,8 @@
|
|||
//
|
||||
|
||||
MarkdownEditor.prototype.onClickToolbarButton = function(ev) {
|
||||
var $button = $(ev.target).closest('.btn'),
|
||||
var $target = $(ev.target),
|
||||
$button = $target.is('a') ? $target : $target.closest('.btn'),
|
||||
action = $button.data('button-action'),
|
||||
template = $button.data('button-template')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue