mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-16 14:34:28 -06:00
Fix guide button not working
This commit is contained in:
parent
acf45c8d58
commit
68601d9d38
2
dist/simplemde.min.js
vendored
2
dist/simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1787,8 +1787,10 @@ SimpleMDE.prototype.createToolbar = function (items) {
|
||||
item.action(self);
|
||||
};
|
||||
} else if (typeof item.action === 'string') {
|
||||
el.href = item.action;
|
||||
el.target = '_blank';
|
||||
el.onclick = function (e) {
|
||||
e.preventDefault();
|
||||
window.open(item.action, '_blank');
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user