mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
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…
x
Reference in New Issue
Block a user